Skip to content

AlShag/drf_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages