Simple questionnaire
Before starting, install Compose. To get the containers running, build the images and then start the services:
docker-compose up --build -dNow you in your browser the servis is available as URL: localhost:8000/
To stop docker service:
docker-compose stop webTo start docker service again:
docker-compose start webTo stop service and/or to remove image:
docker-compose downTo run test:
docker-compose run web python manage.py testRequirements:
- Python 3
Run commands:
pip install -r requirements_dev.txt
mkdir db
python manage.py migrate
python manage.py loaddata --app core questions.jsonTo create super user run:
python manage.py createsuperuser --username super-mario --email super-mario@snap.companyRun server:
python manage.py runserver --insecureNow you in your browser the servis is available as URL: localhost:8000/
To run tests:
python manage.py test tests