Skip to content

YCP-Swarm-Robotics-Capstone-2020-2021/swarm-website-backend

Repository files navigation

Obtain .env file

File goes into the swarmdjango directory. For local development all you need are the
following variables to be set:

  • DB_PASSWORD
  • SECRET_KEY
  • DEBUG=True

You also need the file env.list in the swarmpostgres directory. This is used in the
dockerUpDb.sh script. The following variables need to be set:

  • POSTGRES_PASSWORD
  • POSTGRES_USER
  • POSTGRES_DB

Contact repo owners or contributors for these variable values.

Build backend Docker containers

sh dockerUpBackend.sh

coverage lib commands

-all commands run in django container-

run after any code addition: coverage run --source='.' manage.py test
then run coverage report or coverage html to get report

  • The former will simply show report in the terminal
  • The latter will make a 'htmlcov' dir (gitignored) with an 'index.html' you can view and look at the report in the browser

About

Backend source code for Swarm Robotics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages