Skip to content

DDavidkov/wfo-scheduler

Repository files navigation

Overview

Master repo for the WFO scheduler application.

The frontend and the backend are included as git submodules. You can find the standalone frontend repo here and the backend repo here.

Prerequisites

  • NodeJS - Latest stable (LTS) should be good enough
  • PostgreSQL - Download and install 11.9
  • PgAdmin - I am using v4.23, but latest should be fine as well. Note: you don't need this step if you have installed it as part of the PostgreSQL installation.
  • VSCode - Latest stable

How to run

  1. Run git submodule init and git submodule update from a command prompt

  2. Install the dependencies by running npm install from this folder and the wfo-scheduler-backend and wfo-scheduler-frontend folders

  3. Create a .env file in the backend and copy the contents of the .env.example file from the same folder. You may need to change some of the stuff there like the DB_PASS field in order to match you PostgreSql password. Additionally you can generate a safer JWT_SECRET from this site (use the value generated in the 63 chars alpha numeric field).

  4. Create a .env.local file in the frontend, by copying the contents of the .env.example file from the same folder.

  5. Open PgAdmin and create a new database with the same name as the DB_NAME field from your .env file in the backend (by default it should be wfo). Right click the newly created db and select the "Restore" option. Use the backup file in the backend data folder for the restore. You can now browse the available employees in the db.

  6. Run npm start command from this folder and the application should start in your browser. You can log with the email of the employees in the db and "test" for password (this is the password for all employees).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published