Skip to content
Snippets Groups Projects
Commit c571de19 authored by Jan Maximilian Michal's avatar Jan Maximilian Michal
Browse files

Updated README

parent a17b5184
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -11,31 +11,52 @@ Installing
To set up a new instance perform the following steps:
#. Create a virtual environment with a Python3.6 interpreter and activate it.
It works like this::
virtualenv -p python3.6 env
source env/bin/activate
Just type ``deactivate`` the get out.
#. Set the environment variable ``DJANGO_DEV`` to ``True`` like this::
export DJANGO_DEV=True
#. Install dependencies::
pip install -r requirements.txt
yarn install --modules-folder core/static/node_modules
pip install -r requirements.txt
yarn install --modules-folder core/static/node_modules
or alternatively with the make task::
or alternatively with the make task::
make install
make install
#. Set up a Postgres 9.5 database. If you have docker installed the easiest way is to just run it in a docker container, like this::
#. Set up the database.
docker run --rm --name postgres -p 5432:5432 postgres:9.5
If you are running a local instance for development purposes you
may just run::
And apply database migrations::
python manage.py migrate
python manage.py loaddata core/fixtures/testdata-groups.json
#. Create a superuser if necessary::
python manage.py createsuperuser
python manage.py createsuperuser
#. Your instance should now be ready to be filled with real data. If you just
need some basic examples you can load them with::
More users can be added in the admin interface. You should be able to reach it via http://localhost:8000/admin.
#. Everything is set. You can start the development server with::
python3 manage.py runserver
or just::
make run
#. Reliable test data will follow soon (promise).
make loadexamples
Overview
========
......@@ -55,4 +76,3 @@ Grady has three basic functions for the three types of users
+ review their final feedback and score in the post exam review
An overview over the database can be found in the docs folder.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment