A Node Express Mongoose application collecting tweets about swiss politicians.
Read the wiki to understand how the application is structured.
You need MongoDB installed and running (mongod.exe)
$ git clone https://github.com/madhums/node-express-mongoose.git
$ cd node-express-mongoose
$ npm install
$ cp .env.example .env
$ npm start
Get tweets for a specific user id:
GET http://localhost:3000/tweets/user/id/168234077
Get the 30 newest tweets (pagination)
GET http://localhost:3000/tweets
next page
http://localhost:3000/tweets?page=1
load by name
http://localhost:3000/tweets/user/name/Roger+Nordmann
load by party name
http://localhost:3000/tweets/user/party/SVP
Coming soon: mentions sentiments mentions?party=svp sentiments?party=svp mentions?politicanId=1234142 sentiments?politicanId=1234142
mentions/count mentions/count?party=GLP mentions/count?politicianId=280789941
Tweets/count (default 1 woche) Tweets/count?party=svp Tweets/count?politican_id=svp
nodemon --inspect server.js
navigate to chrome://inspect
and click Open dedicated DevTools for Node
(Chrome 60)
MIT