Team presence and absence management
2.9K
Delevoped as WAMYTM: Where Are My Team Members?
This app allows every user to plan her/his office days and days off.
New documentation is avalable at https://erikwegner.github.io/wamytm/
docker-compose up -ddocker-compose exec db psql -U postgresdocker-compose exec korporator /bin/bashpython manage.py migrate to initialize databasepython manage.py createsuperuser to create backend adminCheckout dev branch from repository
Start required containers: docker-compose -f docker-compose-dev.yml up -d
Database
docker-compose -f docker-compose-dev.yml exec db psql -U postgresKeycloak identity server
Korporator setup
pip install pipenvpipenv shellPIPENV_VENV_IN_PROJECT="enabled" pipenv install --devcd src && DJANGO_SETTINGS_MODULE=wamytmsite.settings.dev python manage.py migratecd src && DJANGO_SETTINGS_MODULE=wamytmsite.settings.dev python manage.py createsuperusercd src && DJANGO_SETTINGS_MODULE=wamytmsite.settings.dev python manage.py example_dataRun korporator
cd src && DJANGO_SETTINGS_MODULE=wamytmsite.settings.dev python manage.py runserverRun tests:
Bash:
# setup environment
export DJANGO_SETTINGS_MODULE=wamytmsite.settings.test
cd src
./manage.py collectstatic
# run tests
./manage.py test
PowerShell:
# setup environment
$env:DJANGO_SETTINGS_MODULE="wamytmsite.settings.test"
cd src
python manage.py collectstatic
# run tests
python manage.py test
Run tests with coverage:
cd src
DJANGO_SETTINGS_MODULE=wamytmsite.settings.test coverage run --source='.' manage.py test wamytmapp
coverage html
python -m http.server --directory htmlcov/ 8008
wamytm in the realm's Clients sectionWAMYTM_KEYCLOAK_CLIENT_IDWAMYTM_KEYCLOAK_CLIENT_SECRETWAMYTM_KEYCLOAK_PUBLIC_KEYWAMYTM_KEYCLOAK_AUTH_URL and WAMYTM_KEYCLOAK_TOKEN_URL with the correct hostname, port and realm nameusername, Property to username (or something equal, e. g. email)wamytmwamytm-audience, Mapper Type Audience, Included Client Audience: wamytm, Add to access token onwamytm from Available client scopes to Assigned default client scopescreate user wamytm with encrypted password 'Stw9nUvm';
alter role wamytm set client_encoding to 'utf8';
alter role wamytm set default_transaction_isolation to 'read committed';
alter role wamytm set timezone to 'UTC';
create database wamytmdb;
revoke CONNECT on DATABASE wamytmdb from public;
grant all on DATABASE wamytmdb to wamytm;
alter database wamytmdb owner to wamytm;
\c wamytmdb
alter schema public owner to wamytm;
\q
To run tests, execute this command:
ALTER USER wamytm CREATEDB;
| Environment variable | Setting |
|---|---|
| WAMYTM_TRUST_X_FORWARDED_PROTO | True trust the X-Forwarded_Proto header |
False to ignore the header | |
| USE_X_FORWARDED_HOST | True use X-Forwarded-Host header to construct links |
False to ignore the header |
See docker-compose.yml for further settings.
Content type
Image
Digest
sha256:7813d3213…
Size
585.3 MB
Last updated
12 months ago
docker pull erikwegner/korporator:v17.6.3