icp/src
root f5e4e0e7ae Trying to fix minor stuff. 2019-06-28 16:26:41 +00:00
..
courses Favicon 2018-05-07 10:30:15 +01:00
frontend Trying to fix minor stuff. 2019-06-28 16:26:41 +00:00
main Trying to fix minor stuff. 2019-06-28 16:26:41 +00:00
rest Nai 2018-05-06 15:17:41 +01:00
runner Uses docker to run. 2018-05-06 13:11:47 +01:00
templates Trying to fix minor stuff. 2019-06-28 16:26:41 +00:00
tools Initial copy 2018-05-05 23:19:22 +01:00
Makefile Initial copy 2018-05-05 23:19:22 +01:00
README.md Initial copy 2018-05-05 23:19:22 +01:00
generated_exercises Initial copy 2018-05-05 23:19:22 +01:00
manage.py Initial copy 2018-05-05 23:19:22 +01:00

README.md

Requirements

  • Django
  • Django REST Framework
  • Python Social Auth

An easy way to install the dependencies is provided by using pip. Always consider to use virtualenv, be it for testing or for deployment.

mkdir virtualenv
virtualenv -p python3 ./virtualenv
source ./virtualenv/bin/activate
pip3 install -U -r requirements.txt

NOTE: When working on the project make sure to source the ./bin/activate file to set the environment correctly.

Development/Test Environment

For convienience during testing you can use some of the helpers, provided either through the Makefile or through shell scripts wrapping common actions with Django. If your familier with Django you may also iterface as usual using the manage.py script.

E.g. to start the server you can simply run:

./run-testserver

Deployment

The testserver should not be used for production systems. Also instead of using sqlite PostgreSQL should be installed as the database backend.

Tests

Before you deploy the app, you should run the tests provided to make sure everything works as expected. Start the

make test

OR

python manage.py test courses
python manage.py test rest