Skip to content
This repository was archived by the owner on Jan 11, 2022. It is now read-only.

rti/django-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An opinionated project template for creating REST APIs

Topics

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •