Skip to content

nelsonsequiera/django-postgres-boilerplate

Repository files navigation

CCLS Reporting Backend

First time setup

cp .env.example .env
docker-compose build --no-cache
docker-compose up -d
docker-compose exec app bash
cd /application/server
python manage.py migrate
python manage.py createsuperuser

To bring up/down containers

docker-compose up -d   #(server starts here, at http://localhost:8000/)
docker-compose ps
docker-compose down

To get inside containers

docker-compose exec app bash
cd /application/server

To see logs

docker-compose logs -f --tail 1000

Tools added

in settings.py file:

SENTRY_DSN=<% DSN from sentry server %>

To view browsable APIs:

http://localhost:8000/

To explore:

http://localhost:8000/explorer/

To Swag:

http://localhost:8000/swagger/

http://localhost:8000/redoc/

About

python django and postgres boilerplate using docker compose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published