# Covid-Africa API
## Requirements
- Python 3.4 +
- OpenSSL (latest version)
- Pip
- Masonite
- Masonite-api
- virtualenv
## Setup
```bash
craft install
craft run serve
```
If you are stuck here, refer to this article to better understand how to setup your masonite development environment.
## Run the project locally
First, configure your database environment. Refer to the official documentation.
```
craft migrate
craft schedule:run --task UpdateAfricaData
craft schedule:run --task UpdateCountryData
```
Theses tasks will insert the data in your database. The next step now is to update your database. Check here to see how to do it.
## How to use the API :
### GET Country
Return the name of the country, the number of cases, death and recovered.
```
covidafrica-api.herokuapp.c…
```
#### Example
```bash
curl --request GET '
covidafrica-api.herokuapp.c…'
```
### GET countries
Return the list of every african Country with name, and case, death and recovered numbers.
```
covidafrica-api.herokuapp.c…
```
#### Example
```bash
curl --request GET '
covidafrica-api.herokuapp.c…'
```
### GET historical Africa
Return a list of object containing the date (since 2019-12-31) with the number of cases and deaths; and the new case and new deaths of that day.
```
covidafrica-api.herokuapp.c…
```
#### Example
```bash
curl --request GET '
covidafrica-api.herokuapp.c…'
```
### GET Date Africa
Return the number of cases, new cases, deaths and new deaths of the requested date.
Be sure the date is between 2019-12-31 and yesterday date.
```
covidafrica-api.herokuapp.c…
```
#### Example
```bash
curl --request GET '
covidafrica-api.herokuapp.c…'
```
## Maintainers
- shadowcompiler
- kolawolemangabo
## Contribution
If you're …