Skip to content

thoth-tw/covid-19

Repository files navigation

covid-19

covid19

The data is crawled from https://www.worldometers.info/coronavirus/, so it might not be stable.

Installation

# install nodemon if you don't have it installed globally
yarn global add nodemon # or npm install nodemon -g

git clone https://github.com/huaying/covid-19

cd covid-19
yarn install
yarn --cwd api install

Setup

Go to https://newsapi.org/ and get your api key. Create file .env and put your key here.

NEWS_API_KEY=YOUR_KEY_HERE

Run locally

The server fequently fetch the latest stats data and news. It will serve your data at port 5001. To start your server, run:

yarn api:dev

UI is written in next.js. To start your ui, run:

yarn dev

Deployment

Should be trival. Go figure out yourself :)