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)
Install Docker and Docker-compose (sudo apt-get install docker python-pip docker-compose).
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