JonasDju / ycms

Apache License 2.0
3 stars 0 forks source link

CircleCI ReadTheDocs

Installation

This section describes how to setup a development environment to start contributing to this project. There are currently two ways to install YCMS, but both methods require you to have Docker installed on your system. Windows users should use the newest Version of Docker Desktop, Linux users should use Docker Engine (including the docker compose plugin).

Pure Docker installation (Recommended)

git clone git@github.com:JonasDju/ycms.git
cd ycms
docker compose --profile dev up

Building and starting the container for the first time will take several minutes. Subsequent runs of the project will start much faster. While the container is running, the WebUI can be accessed via http://localhost:8086. Any changes made to the source code or templates will be visible in real time without stopping the container. The containers can be stopped using Ctrl+C. If you wish to reset the database, use docker compose --profile dev down after stopping the containers.

After changing or adding any translation strings inside .py or .html files, you need to stop the container (Ctrl+C), make manual modifications to the translation file located at ycms/locale/de/LC_MESSAGES/django.po and then restart the container using docker compose --profile dev up.

Local installation

Note: if you absolutely MUST use Windows, follow the guide in WSL.md. No guarantees though.

For Linux and Mac users, the following packages are required before installing the project (install them with your package manager):

If you want to use the "suggest assignment" functionality, additional steps are needed before installing YCMS:

Continue with the installation of the YCMS project:

git clone git@github.com:JonasDju/ycms.git
cd ycms
./tools/install.sh --pre-commit

Your folder structure should look like this now:

some_folder/
├─ patient-to-room_assignment/
│  └─ ...
└─ ycms/
   ├─ docker
   ├─ docs
   └─ ...

Next, the translation files should be compiled with ./tools/translate.sh to make sure that the german translation is available. To start the development server, run: ./tools/run.sh Any changes made to the code or the templates will be visible in real time. If you wish to reset the database, delete the .postgres folder inside the ycms directory.

After changing or adding any translation strings inside .py or .html files, you are required to update the translation file using ./tools/tranlsate.sh --skip-compile, make manual modifications to the updated file located at ycms/locale/de/LC_MESSAGES/django.po and then compile the changes using ./tools/tranlsate.sh. You can check if you forgot some manual translations by running ./tools/check_tranlsations.sh.

Using the WebUI

Personnel ID Group
ROOT_00001 -
ZBM_000001 ZBM
STATION_MG STATION_MANAGEMENT
DR_0000001 MEDICAL_PERSONNEL
NURSE_0001 MEDICAL_PERSONNEL

All default users share the password changeme.

Documentation

Read the docs at ycms.readthedocs.io.

License

This project is licensed under the Apache 2.0 License, see LICENSE and NOTICE.md. It is based on digitalfabrik/integreat_cms, Copyright © 2023 Tür an Tür - Digitalfabrik gGmbH and individual contributors. All rights reserved.