CoronaBrasil services is a Django API running for the project https://coronabrasil.org to help brazilian people to find information about availability of public and private services separated by regions of Brazil.
We use Python 3.7 and Postgresql.
Use the package manager pip to install our dependencies.
mkdir cbrasil
cd cbrasil
virtualenv venv
source venv/bin/activate
git clone https://github.com/coronaaqui/website.git
cd services
pip install -r requirements.txt
Creating settings.py file and modify access DB:
cd services/cbrasil/cbrasil
mv settings.example.py settings.py
vim settings.py
(and configure your DB access)
./manage.py makemigrations
./manage.py migrate
./manage.py loaddata bootstrap_dump.json (optional - some basic data)
./manage.py runserver
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Stay connected in our Slack channel: CoronaBrasil Slack.