Only the trendiest. Search Google Trends for any topic of interest and see news articles corresponding to spikes in interest.
Go to URL: https://trend-game.herokuapp.com/
- Node
- NPM
- API key for Aylien News API
- Postgres
From the root directory:
npm install
Deployed Heroku Postgres DB:
- Provision your app with a Heroku Postgres db.
- Find the db's url in the config vars for your app and copy it.
- Paste it in setupDatabse.js as per the instructions in that file.
- Use node to run setupDatabase.js. If you get 3 console log statements confirming table creation, you're good to go!
Local DB:
- Install a local version of PostgreSQL. Recommend using brew to manage installation.
- Create a db in your local PostgreSQL server cluster.
- Follow the instructions in dbLocalConnection.DUMMY.js and populate it with the information for the db/user.
- Edit setupDatabase.js to point at your local DB. NOTE: The instructions and structure in this file are intended for populating deployed Heroku Postgres dbs with the schema. For a local DB, just point the connection at your local db by setting the connection in require('knex') to your local db's information. You can find this information in dbLocalConnection.js (assuming you've made it as per step 3).
- Use node to run setupDatabase.js. If you get 3 console log statements confirming table creation, you're good to go!
From the root directory:
- In one terminal window, run
> npm run dev
- In another terminal window, run
> npm run start:watch
- go to http://127.0.0.1:8080
- Don't forget you'll need an Aylien News API key
View project roadmap
View app plan (includes schemas and architecture diagrams, etc)
See CONTRIBUTING.md for contribution guidelines.