/django-rest-api

An opinionated project template for creating REST APIs

Primary LanguagePython

django-rest-api

An opinionated project template for creating REST APIs

Based on

How to use

Install docker-compose

Start the API

docker-compose up

Direct your browser to http://127.0.0.1:8000/app/

Access the django admin interface

docker-compose run --rm django python manage.py createsuperuser
docker-compose up

Direct your browser to http://127.0.0.1:8000/admin/

Run tests

docker-compose run --rm django python manage.py test --noinput --failfast

TODO

  • Production setup
    • Docker: include source in container, remove volume
    • Docker: postgres auth
    • Docker: nginx proxy, SSL
    • Django: disable debug mode
    • Django: set SECRET_KEY
    • Django: configure CORS_ALLOWED_ORIGINS