- Clone the repository:
git clone https://github.com/adamw-git/news-guess.git
cd news-guess- Run the program with the following command:
sudo npm install -g serve
cd client
serveThen open http://localhost:3000 in your web browser.
- Install dependencies.
npm install- Create a .env file in the project root, then insert your Guardian API key:
GUARDIAN_API_KEY=INSERT_KEY_HERERun the program with the following command:
node scripts/index.js
This script will populate the database with articles using the Guardian's API, and populate the json file with article data.