Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions Social Searcher/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# SOCIAL SEARCHER - TWEETS

## app.js

This program will search popular tweets based on provided keyword on seach bar and display them in a web page. Twitter limits the amount of tweeets that can be downloaded (i.e 100+ tweets per query but as I filter those tweets and extract only the most popular ones' so the API provides the max-limit of 15 tweets per query).

### Dependencies
To access the Tweeter API I used Twitter REST API 3.0. I also imported the libraries of body-parser and ejs.

### Running the app
1. Download/clone the repository to your local machine.
2. Open the terminal line to the file location and enter the following commands one by one to download all the dependencies:
```
npm install express
```
```
npm install body-parser
```
```
npm install ejs
```
3. Enter the final command on terminal of same file location to run the app
```
node app
```
Note: On a successful run a message **listening to port 3000** will be printed on command prompt.

4. Now open your browser and go to <http://localhost:3000/socialsearch>

5. Search for tweets based on your interest in a search bar and it will print the most popular ones on web page

---

### License and copyright
**© Owais Ibrahim**

15 changes: 15 additions & 0 deletions Social Searcher/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
var express=require('express');

var emailController = require('./controllers/tweetcontroller');

var app=express();

app.set('view engine','ejs');

app.use('/assets',express.static('./public/assets'));

emailController(app);

app.listen(3000);

console.log('listening to port 3000');
1 change: 1 addition & 0 deletions Social Searcher/client_secret.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"installed":{"client_id":"15859182790-rfs30rlq9o3e0al578dfvsg3ilv83kem.apps.googleusercontent.com","project_id":"fleet-tractor-208609","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"mZv6jbQRidWYYpWO3mIx0dJV","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}
1 change: 1 addition & 0 deletions Social Searcher/controllers/client_secret.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"installed":{"client_id":"15859182790-rfs30rlq9o3e0al578dfvsg3ilv83kem.apps.googleusercontent.com","project_id":"fleet-tractor-208609","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"mZv6jbQRidWYYpWO3mIx0dJV","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}
1 change: 1 addition & 0 deletions Social Searcher/controllers/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file act as a middleware
Loading