uses https://newsapi.org/ and then emails news headlines to subscribers
Required packages(npm modules)
- npm install sync-request
- npm install jsonfile
- npm install node-schedule
- npm install mailgun-js
Configuration
- Set mailer credentials
- set newsapi sources basing on: https://newsapi.org/sources keys
- set newsapi sortby to either top, latest or popular
- set newsapi key (https://newsapi.org/register)
Running app
- Ubuntu
- apt-get install nodejs-legacy
- apt-get install npm
- npm install knews-app
- npm start knews-app
- Os X
- Add Auto execution cronjobs (run every workday at 10 and 20) 0 10 * * 1-5 node /Users/k-joseph/Projects/kaweesi/knews-app/index.js 0 20 * * 1-5 node /Users/k-joseph/Projects/kaweesi/knews-app/index.js