This is a template for building backend API.
- Docker
- Django
- Django Rest Framework
- Authentication Endpoints
- Testing base
The only system requisites are docker and docker-compose, everything else is handled inside the docker container.
make setup
(or run the setup commands in Makefile if you don't have make installed.)docker-compose up
ordocker-compose up -d
docker-compose exec django ./manage.py migrate
Since the project is running in a docker container you can run django commands
with docker-compose exec django ./manage.py <command>
.
You can run tests with make test
or run with extra options using a docker-compose exec script.
When generating new files through startapp
or makemigrations
for instance, the files will not be owned by you and you won't have permission to modify. You can fix that by running make chown
.