/surveybox-be

Back-end for SurveyBox (Django, DRF, Docker, Kubernetes, Azure).

Primary LanguagePython

surveybox-be

Build Status

Back-end for SurveyBox.

Prerequisites

  • Docker
  • Azure CLI
  • Kubectl
  • Python

Local Development

Start the dev server for local development:

docker-compose up

Run a command inside the docker container to create a superuser:

docker-compose exec web python manage.py createsuperuser

Run Tests

# activate environment
virtualenv venv -p python3.7
source ./venv/bin/activate

# run postgres database locally
docker run --name postgres -p 5432:5432 postgres

# run tests
python manage.py test