The data is crawled from https://www.worldometers.info/coronavirus/, so it might not be stable.
# 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
Go to https://newsapi.org/ and get your api key.
Create file .env
and put your key here.
NEWS_API_KEY=YOUR_KEY_HERE
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
Should be trival. Go figure out yourself :)