Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tinuwalther/rotamaster
Absence and duty scheduling program for teams based on Pode, and FullCalendar, created with ChatGPT prompt for JavaScript.
https://github.com/tinuwalther/rotamaster
fullcalendar javascript pode powershell
Last synced: 5 days ago
JSON representation
Absence and duty scheduling program for teams based on Pode, and FullCalendar, created with ChatGPT prompt for JavaScript.
- Host: GitHub
- URL: https://github.com/tinuwalther/rotamaster
- Owner: tinuwalther
- Created: 2024-09-14T15:41:05.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-02T15:48:31.000Z (6 days ago)
- Last Synced: 2024-11-02T16:28:27.186Z (6 days ago)
- Topics: fullcalendar, javascript, pode, powershell
- Language: PowerShell
- Homepage:
- Size: 8.16 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RotaMaster V3
Absence and duty scheduling program for teams based on Pode, and [FullCalendar](https://fullcalendar.io/), created with ChatGPT prompt for JavaScript.
Each time the page is loaded, the system checks whether the file for the next year's holidays already exists. If the file does not yet exist, the public holidays in Switzerland are calculated for the cantons of Bern, Zurich, St. Gallen and Graubünden and the file is created with these values. You never have to worry about it again, the public holidays are simply there.
If you want to create the holidays for a different year, you can call the API with the desired year. For example with PowerShell:
````Invoke-WebRequest -Uri http://localhost:8080/api/year/new -Method Post -Body 2025````
## Year view
In this calendar view, you can view the events of the current month, scroll to another month, and add new events.
![PSRotaMasterFullYear](./img/PSRotaMasterFullYear.png)
## Month view
To show the current month, click on the middle button 'month'.
![PSRotaMasterFullMonth](./img/PSRotaMasterFullMonth.png)
## List view
Or if you prefere a list of the events of the current month, click on the right button 'list'.
![PSRotaMasterList](./img/PSRotaMasterList.png)
## Add a range with form dates
Type, or select the person and select absence-type, choose the start- and end date, and press the button to submit the new event.
![PSRotaMasterForm](./img/PSRotaMasterForm.png)
## Add a range with selecting dates
Select a range fills the selected start- and end date into the formular. Type or select the person and select the absence-type and press the button to submit the new event.
![PSRotaMasterSelected](./img/PSRotaMasterSelected.png)
## Functionality
The RotaMaster is a Web service based on Pode.
All of the APIs on the backend are written in PowerShell and the frontend is written in JavaScript and HTML/CSS.
## Modules
The following PowerShell-Modules are mandatory:
- Pode
- PSSQLite## Folders
The RotaMaster needs the following folder-structure:
````cmd
PSRotaMaser
+---api
+---archiv
+---bin
+---errors
+---img
+---public
| +---assets
| | +---BootStrap
| | +---img
| | +---Jquery
| | \---rotamaster
| \---img
\---views
````### PSRotaMaser
This is the root-folder for the web service. Here must be the PodeServer.ps1 located.
### api
This folder contains the files of the web service. For example, the files for the public holidays, the absence type or the persons.
The files for the absence and people must be JSON files, and the file containing the holidays must be a CSV file.
The events have also been saved in a SQLite database called rotamaster.db in this folder.
### archiv
For obsolete files, that you want to archive and not load in to the calendar.
### bin
This folder contains the PowerShell code of the backend.
### errors
This is an internal folder for the error-page.
### img
Here are the images for the readme.
### public
This folder is public for the web service and should contains all the assets you need.
### views
This is the folder where the index.html is saved.