Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 825 Bytes

README.md

File metadata and controls

46 lines (30 loc) · 825 Bytes

Django REST Framework API Example

Basic backend for modern web application

Stack:

  • Python
  • Django
  • Django REST framework
  • PostgreSQL
  • Docker

Dependencies

Installation

Using Docker:

# build
docker-compose pull
docker-compose build --parallel

# start (will run on http://localhost:8000)
docker-compose up -d

# get logs
docker-compose logs -f backend
docker-compose logs -f

# stop
docker-compose down -t 0

# running backend tests
docker-compose run backend sh -c "PYTHONDONTWRITEBYTECODE=1 ./manage.py test --noinput"

Interfaces to surf API

  • Swagger | localhost:8000/api/swagger
  • Redoc | localhost:8000/api/redoc
Made with big Love to Music