Skip to content

temilaj/covid-tracker-nigeria

Repository files navigation

Coronavirus tracker for Nigeria

License: MIT License: MIT

open source Coronavirus (COVID-19) API for Nigeria

DISCLAIMER

This web resource depends on data gotten from NCDC (@NCDCgov). At the moment, the NCDC does not publish data on COVID-19 related recoveries and deaths for each state. Hence, PLEASE DO NOT rely on this data for state specific deaths and recoveries. Instead only use Data for state specific confirmed cases, as well as the the total number (country wide) confirmed cases, deaths and recoveries.

Setting up

  • Clone this project to any folder on your local machine
git clone git@github.com:temilaj/covid-tracker-nigeria.git <FOLDER_NAME_HERE>
  • Navigate into the folder name specified
cd <FOLDER_NAME_HERE>
  • install included packages
yarn install
# or
npm install
  • create a .env file in the root of your project using the .sample.env file as a guide and populate values with your preferred options.

  • install the Prisma CLI

yarn add global prisma
# or
npm install -g prisma
  • Launch Prisma and the connected database
docker-compose up -d
  • Deploy the datamodel to your local Prisma instance
yarn deploy
# or
npm run deploy

Running the API Server in Development

Run yarn start or npm start to initialize and run the development server on the port you specified in the .env file.

Additional resources

LICENSE