darklight147 / covid-api

Simple crawler and REST Api that tracks corona cases in a desired country each time someone makes a GET request

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to covid-api 👋

Version License: MIT BUILD

Simple crawler and REST Api that tracks corona cases in desired country each time someone makes a GET request

Demo

Install

yarn install --frozen-lockfile

Usage

add a PORT and COUNTRY to the .example.env file and:

yarn start

Run tests

yarn start

Author

👤 Mohamed Belkamel

DOCKERIZING

sudo docker-compose -f docker-compose.prd.yaml up -d --scale api=2

This command creates a docker container and scales the api to two instances runs by default on PORTS 5054 and 5055, you can load-balance them with NGINX

Show your support

Give a ⭐️ if this project helped you!


Made with ❤️ by Mohamed Belkamel

About

Simple crawler and REST Api that tracks corona cases in a desired country each time someone makes a GET request

License:MIT License


Languages

Language:JavaScript 93.2%Language:Dockerfile 6.8%