README.md 858 Bytes
Newer Older
Lukas Burgey's avatar
Lukas Burgey committed
1 2 3 4 5 6 7 8 9 10 11


Installation
====

- apt install nginx rabbitmq-server uwsgi-plugin-python3 virtualenv default-libmysqlclient-dev gcc
	- Notes: gcc is needed for the python package mysqlclient
- useradd -m feudal
- su feudal
	- git clone git.scc.kit.edu/fum/fum_backend ~/backend
	- Configure your database in ~/.my.cnf
Lukas Burgey's avatar
Lukas Burgey committed
12
	- Configure django in ~/backend/feudal/settings.py
Lukas Burgey's avatar
Lukas Burgey committed
13 14 15 16 17 18 19 20 21 22 23 24 25
	- cd ~/backend
		- ./generate-secret
		- virtualenv -p /usr/bin/python3
		- source env/bin/activate
			- pip install Django django-cors-headers django-mysql django-polymorphic django-rest-polymorphic djangorestframework oic urllib3 mysqlclient pika
- Configure uwsgi in /etc/uwsgi/backend.ini
- Configure nginx in /etc/nginx/conf.d/feudal.conf
- su feudal
	- cd ~/backend
		- source env/bin/activate
			- ./manage.py makemigrations backend
			- ./manage.py migrate
			- ./manage.py create superuser