Skip to content

adamw-git/news-guess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup for Game

  1. Clone the repository:
git clone https://github.com/adamw-git/news-guess.git
cd news-guess

Run

  1. Run the program with the following command:
sudo npm install -g serve
cd client
serve

Then open http://localhost:3000 in your web browser.

Setup for Guardian API

  1. Install dependencies.
npm install
  1. Create a .env file in the project root, then insert your Guardian API key:
GUARDIAN_API_KEY=INSERT_KEY_HERE

Run 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.

About

A game where you guess the country based on the news article

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors