README.md 1.06 KB
Newer Older
Lukas Burgey's avatar
Lukas Burgey committed
1

Lukas Burgey's avatar
Lukas Burgey committed
2 3 4 5 6 7
FEderated User Credential Deployment PortAL (FEUDAL)
====
	- User interface: [Webpage](https://git.scc.kit.edu/feudal/feudalWebpage)
	- Component at the sites: [Client](https://git.scc.kit.edu/feudal/feudalClient)


Lukas Burgey's avatar
Lukas Burgey committed
8 9

Installation
Lukas Burgey's avatar
Lukas Burgey committed
10
----
Lukas Burgey's avatar
Lukas Burgey committed
11 12 13 14 15 16 17

- 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
18
	- Configure django in ~/backend/django_backend/settings.py
Lukas Burgey's avatar
Lukas Burgey committed
19 20 21 22 23 24 25 26 27 28 29 30 31
	- 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