Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 794 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 794 Bytes

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