Giter Site home page Giter Site logo

ddanielcruz / covid19-api Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 2.0 562 KB

:syringe: Coronavirus RESTful API for current cases by country - extracting data from Worldometers

License: MIT License

Dockerfile 1.37% JavaScript 3.67% TypeScript 92.10% Shell 2.86%
covid-19 coronavirus api rest-api nodejs covid19 covid

covid19-api's Introduction

๐Ÿ’‰ covid19-api

Coronavirus RESTful API for current cases by country - extracting data from Worldometers

GitHub language count GitHub repo size Made by Daniel Cunha GitHub last commit License

๐Ÿ’ป Project

Simple COVID19 API developed with Node.js and TypeScript. It periodically extracts cases from Worldometers and store it in a MongoDB database. This project was developed for studying purposes, and contains a simple documentation in the docs folder.

๐Ÿš€ Technologies

๐Ÿ”ฅ Usage

To use this project you'll basically have to clone it using Git and run it using Docker.

# Cloning the repository
git clone https://github.com/danielccunha/covid19-api.git
cd covid19-api

# Setting up environment variables (MongoDB credentials basically)
cp .env.example .env
nano .env

# Running it with Docker on http://localhost:3333
docker-compose up -d

In case you don't want to use Docker, you'll need to also have installed on your machine Node.js, Yarn and MongoDB. Also, you'll need to fill all .env variables, including commented ones.

# Cloning the repository
git clone https://github.com/danielccunha/covid19-api.git
cd covid19-api

# Setting up environment variables (you'll need to fill all MongoDB variables)
cp .env.example .env
nano .env

# Installing dependencies
yarn

# Running worker which will extract cases hourly
yarn dev:worker

# Finally, running the serve on port 3000
yarn dev:server

๐Ÿค” Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'feat: Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a pull request

๐Ÿ“ License

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

covid19-api's People

Contributors

ddanielcruz avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.