API em Djangorestframework para acompanhar o número de casos do Covid-19 na região do Seridó.
Clone the project
git clone https://github.com/jackson541/API-Boletim-Covid.git
Go to Directory
cd API-Boletim-Covid
Install dependencies
pip3 install -r requirements.txt
Configure database
- Install PostgreSQL
- Go to the
settings.py
file in theApiBoletimCovid
folder - Search for
DATABASES
in settings.py - Configure your database information (name, password and port) in the option
default
- Create a table in your database with the name
apicovid
Apply Migrations
python3 manage.py makemigrations
python3 manage.py migrate
Run local server
python3 manage.py runserver
After running the project, go to the route:
http://localhost:8000/swagger/