This folder contains the backend server for OpenSim viewer.
Requisites: Conda and python installed.
-
Create environment using the
environment.yml
file:conda env create -f environment.yml
-
Activate environment:
conda activate opensim-viewer-bend
-
Start server:
python manage.py runserver
-
Create migration files:
python manage.py makemigrations
-
Migrate the database (warning: data can be lost)
python manage.py migrate
Instructions in this Link.
Instructions in this Link.
Inside of backend app folder:
-
Create files for a language:
django-admin makemessages -l <language-code>
-
Compile messages:
django-admin compilemessages
-
Execute all tests:
python manage.py test --verbosity=0