Skip to content
/ MS3 Public

MS3 - Medical Staff Shift Scheduler is designed to schedule medical shifts of hospital employees.

Notifications You must be signed in to change notification settings

CSW-Teams/MS3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5c533ad · Feb 23, 2025
Feb 19, 2023
Feb 25, 2024
Feb 23, 2025
Feb 23, 2025
Jan 14, 2024
Feb 3, 2025
Nov 30, 2023
Dec 12, 2024
Dec 14, 2024
Feb 23, 2025
Feb 3, 2025
Dec 9, 2024
Feb 19, 2023
Dec 22, 2023
Jan 30, 2025

Repository files navigation

🏥 MS3

MS3 - Medical Staff Shift Scheduler is designed to schedule medical shifts of hospital employees.

🚀 Running the Project Locally

Installare PostgreSQL e creare nel DBMS:

  • un utente con username = sprintfloyd e password = sprintfloyd con grants da SUPERUSER
  • un database vuoto chiamato ms3
  • 3 utenti:
    • public_scheme_user con password password_public
    • tenant_a_user con password password_a
    • tenant_b_user con password password_b
      • Ognuno con i seguenti grants:

        LOGIN
        NOSUPERUSER
        NOCREATEDB
        NOCREATEROLE
        INHERIT
        NOREPLICATION
        NOBYPASSRLS
        CONNECTION LIMIT -1
        

Per avviare il sistema, lanciare il Backend e il Frontend e visitare (3000 è la porta di default):

http://localhost:3000

📦 Running the project with Containers

⚠️ Solo su WINDOWS: Convertire tramite il comando dos2unix (vedi qui) i file di testo mvnw e src/main/resources/db/init-scripts/init-users.sh.

Per avviare il sistema in containers, bisogna avere installato sulla macchina host Docker e battere il seguente comando su terminale:

docker-compose up -d

Se si impiega il codice in produzione, è opportuno impostare le variabili di ambiente DB_USER, DB_PASSWORD, DB_NAME, DB_TENANT_PUBLIC_USER, DB_TENANT_PUBLIC_PASSWORD, DB_TENANT_A_USER, DB_TENANT_A_PASSWORD, DB_TENANT_B_USER e DB_TENANT_B_PASSWORD con i valori desiderati, altrimenti verranno utilizzati i valori di default presenti nel file .env che sono salvati in chiaro in questa repository, e ciò può rappresentare un problema di sicurezza. La variabile di ambiente FRONTEND_EXPOSE determina su quale porta il server node ascolterà le richieste dei clients (Default is 8080).

Per utilizzare l'applicazione, poi, visitare (sostituire FRONTEND_EXPOSE con il valore configurato):

http://localhost:FRONTEND_EXPOSE

Codacy Badge

About

MS3 - Medical Staff Shift Scheduler is designed to schedule medical shifts of hospital employees.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published