Law&Orga
Law&Orga is a project of Refugee Law Clinics Deutschland e.V.
General
This is the main backend service of Law&Orga.
Special thanks to Dominik Walser who was the first developer on this project.
© AGPL-3.0
Tech
This project uses Django, which is based on python.
Local Setup
git clone https://github.com/lawandorga/law-orga-apps.gitcd law-orga-backend/pipenv install- Create
tmp/media/,tmp/static/,tmp/logs - Run
pipenv shell - Run
python manage.py migrate - Run
python manage.py create_dummy_data - Run
python manage.py runserver
The command create_dummy_data creates an user with email dummy@law-orga.de and password qwe123. You can use it to login into the development frontend.
Local Dev
git pullpipenv installpython manage.py migratepython manage.py runserver
Server Setup
You might want to look into the following file .github/workflows/deploy.yml. This workflow file tests the application
and afterwards it builds and pushes the image into a docker registry. From that registry you can deploy the image to the
hoster of your choice. Some environment variables need to be set within the running environment.
Needed Environment Variables
DB_NAME=""
DB_USER=""
DB_PASSWORD=""
DB_PORT=""
DB_HOST=""
DJANGO_SECRET_KEY=""
EMAIL_ADDRESS=""
EMAIL_HOST=""
EMAIL_PASSWORD=""
EMAIL_PORT=""
PIPELINE_IMAGE=""
PIPELINE_SERVICE=""
S3_ACCESS_KEY=""
S3_BUCKET_NAME=""
S3_SECRET_KEY=""