demostração da arquitetura sugerida no styleguide django-api-domains
Install docker and docker-compose from each documentation
On the project folder run the following commands:
make config.env make build
to copy the file .env.example to .env and build docker containers
Run the command
make up
This command will start 2 services on your machine:
- Django server on local server
- PostgreSQL service on port 5432
On the project folder
make test make coverage make black
Django Admin Site is enabled for the project on local server admin.
make populate.superuser
may be used to create the superuser
User(email='[email protected]', password='@Admin123')
Access the local server and browse the api.
You may interact with the API via browser or via http request softwares such as insomnia