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.gitGo to Directory
cd API-Boletim-CovidInstall dependencies
pip3 install -r requirements.txtConfigure database
- Install PostgreSQL
- Go to the
settings.pyfile in theApiBoletimCovidfolder - Search for
DATABASESin 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 migrateRun local server
python3 manage.py runserver
After running the project, go to the route:
http://localhost:8000/swagger/