- Python 3
- Node v12.15.0
Setup python environment:
$ python3 -m venv ~/.virtualenvs/rubric_visualization
$ source ~/.virtualenvs/rubric_visualization/bin/activate
Setup postgres database:
$ createdb rubric_visualization --owner=postgres
Setup app:
$ pip install -r requirements.txt
$ cp -v rubric_visualization/settings/secure.py.example rubric_visualization/settings/secure.py
$ ./manage.py migrate
$ ./manage.py runserver
# new terminal at project root
$ cd frontend && npm install
$ npm run watch
# new terminal at project root
$ redis-server
Then navigate to where Django is serving content.
If you want to run a dev server with SSL, install pip install local.txt, generate local cert and pem files and then:
./manage.py runsslserver --certificate <cert-file-location> --key <pem-file-location>
Testing Djano:
$ ./manage.py test
Testing React:
$ cd frontend && npm run test