Skip to content

A full stack application to show information about the Coronavirus areas affected near you.

Notifications You must be signed in to change notification settings

carlan/corona-virus-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CoronavirusMap

🤒 Coronavirus map 🤒

A full stack application to show information about the Coronavirus areas affected near you.

CoronavirusMap

📃 TODO:

  • Setup client
    • Create a React application
    • install setup linter
    • Grab sample data from a json file
    • Add a map
      • Let user use own location
      • Display fullscreen
      • Add map controls for zoom in and out
    • Show a pin on locations affected
      • Add popup with more information in case pin is clicked
    • Split app in components
    • Create a dashboard view
    • Update README.md
  • Setup server
    • Create a Node.js application
      • Install dependencies
      • install setup linter
      • Setup express application
      • Setup middlewares for error handling
    • Add route to scrape the data
      • Update user-agent on each request
      • Add latitude and logitude to the data scraped
    • Split application in files controllers, service, utils
    • Update README.md
  • Update README.md to add gif of application working
  • Create Docker config
  • Host it
  • Clean up README.md

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

📜 Prerequisites

  • Get a TOKEN for the map here
  • Place your TOKEN on .env configuration file. See below.

⏳ Installing

To get a copy and run this application, you'll need at least Node.js (and npm) installed on your computer. Git is optional as you can download a zip and have it extracted.

If you want to follow the git clone route:

# Clone the repository
$ git clone https://github.com/carlan/corona-virus-map

# Go into the cloned repository directory
$ cd corona-virus-map

With Node.js installed. Let's install the dependencies of client and run the application:

$ cd client
# Add the map TOKEN on the enviroment configuration file
$ cp .env.sample .env
# Edit the file (.env) in your prefered editor and place your TOKEN on REACT_APP_MapboxAccessToken=<HERE>
$ npm install <OR> yarn install
$ npm start <OR> yarn start

Now, install the dependencies of server and run the application:

$ cd server
$ npm install <OR> yarn install
$ npm start <OR> yarn start

Opening the application on http://localhost:3000 you should be able to see a map with the affected locations of Coronavirus along with some case information for each region/country and map view options.

👷 Built With

👨‍💻 Authors

  • Carlan Calazans - Initial work - carlan

📙 License

This project is licensed under the MIT License - see the LICENSE.md file for details

🤝 Acknowledgments

About

A full stack application to show information about the Coronavirus areas affected near you.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published