derrabauke / mySAGW

Application management for SAGW

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mySAGW

!!!WIP!!!

Build Status Coverage Black License: GPL-3.0-or-later

Application management for SAGW

Getting started

Installation (dev)

Requirements

  • docker
  • docker-compose

After installing and configuring those, download docker-compose.yml and run the following command:

echo "UID=$(id -u)" > .env
docker-compose up -d

Load the config data into Caluma:

make caluma-loadconfig

Add mysagw.local to /etc/hosts:

echo "127.0.0.1 mysagw.local" | sudo tee -a /etc/hosts

You can now access the application under the following URIs:

Configuration

mySAGW is a 12factor app which means that configuration is stored in environment variables. Different environment variable types are explained at django-environ.

Deployment

cp -r ./.envs/.production.example ./.envs/.production

Then edit the files under ./.envs/.production/ to your needs.

For the staging environment, copy to ./.envs/.staging/.

echo -e "UID=$(id -u)\nCOMPOSE_FILE=docker-compose.yml:docker-compose.prod.yml" > .env
# on staging environments:
# echo -e "UID=$(id -u)\nCOMPOSE_FILE=docker-compose.yml:docker-compose.staging.yml" > .env
# Also in .env file, set OIDC_HOST variable
docker-compose up -d
make caluma-loadconfig
# upload the export templates to DMS (adapt template names, if you don't use the default ones)
docker-compose run --rm api python manage.py upload_labels_template -t mysagw/identity/templates/identity-labels.docx
docker-compose run --rm api python manage.py upload_labels_template -t mysagw/accounting/templates/accounting-cover.docx

Contributing

Look at our contributing guidelines to start with your first contribution.

About

Application management for SAGW

License:GNU General Public License v3.0


Languages

Language:Python 62.4%Language:JavaScript 23.6%Language:Handlebars 12.6%Language:Makefile 0.4%Language:SCSS 0.4%Language:HTML 0.3%Language:Dockerfile 0.2%Language:Shell 0.1%