项目作者: anshumanpattnaik

项目描述 :
Coronavirus - (COVID-19) Full Stack Application
高级语言: JavaScript
项目地址: git://github.com/anshumanpattnaik/covid19-full-stack-application.git
创建时间: 2020-04-13T19:29:52Z
项目社区:https://github.com/anshumanpattnaik/covid19-full-stack-application

开源协议:MIT License

下载


Coronavirus - (COVID-19) Full Stack Application

The idea behind this application is to displays the statistics of Coronavirus COVID-19 around the world and the data are being collected from Johns Hopkins University Center for Systems Science and Engineering JHU CSSE and it updates the cases constantly on this website around the world.

Technical Overview

This is a full-stack application which runs react.js in front-end and node.js in the back-end and it parses the data from JHU CSSE and stored in MongoDB database.

And it uses Mapbox to populate the coordinates on the map using GeoJSON format.

MongoDB sample database import command

After git clone import the dummy statistics into your local MongoDB database, which will help you to start the project.

  1. git clone https://github.com/anshumanpattnaik/covid19-full-stack-application.git
  2. cd covid19-full-stack-application
  3. mongod (Start MongoDB database)
  4. mongoimport --uri "mongodb://127.0.0.1:27017/covid-19" --collection covid_statistics --file dummy_statistics.json

Server Installation

  1. cd server
  2. npm install
  3. npm start

Open http://localhost:9000 to view it in the browser.

Client Installation

  1. cd client
  2. npm install
  3. npm start

Open http://localhost:3000 to view it in the browser.

Change the constants values in Client app

  1. export const BASE_URL = `http://YOUR_LOCAL_IP_ADDRESS:9000`;
  2. export const MAPBOX_ACCESS_TOKEN = `YOUR_MAPBOX_API_TOKEN`;

MAPBOX Styles

These two below styles i have made public and it should work when you use your own MAPBOX_API_TOKEN

  1. mapbox://styles/hackbotone/ck8vtayrp0x5f1io3sakcmpnv
  2. mapbox://styles/hackbotone/ck8vt8vdj2fz91ilax6nwtins

Note

If you face any problem or have any suggestion on improving the code then feel free to raise an issue.

Youtube explanation

https://www.youtube.com/watch?v=dth5jfLDuus

Website Design & Developed by

Anshuman Pattnaik

License

This project is licensed under the MIT License