Skip to content

riot-appstore/rapstore-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django and Docker Proof of Concept

Description

This PoC currently) tries to use the current Python CGI script with Django and Docker. It covers:

  • Django Rest Framework
  • PostgreSQL
  • Docker (with docker-compose)

Dependencies

Install Docker and Docker-compose (sudo apt-get install docker python-pip docker-compose).

Usage

Simply run docker-compose -f docker-compose.yml up --build. Docker compose will:

  • Build a postgresql container
  • Install Django, DRF and all dependencies
  • Apply all DB migrations
  • Serve the website at localhost:8000

If you want to populate the database with all examples, boards and modules, just execute (with the docker-compose up running!): docker-compose -f docker-compose.yml exec web python manage.py populate_db