Schedule shifts to employees, accounting for minimum employees per shift, and shift skill requirements.
-
Install Java and Maven, for example with Sdkman:
$ sdk install java
$ sdk install maven
-
Git clone this repo and navigate to this directory:
$ git clone https://github.com/slihatim/Employee-scheduling-backend.git
$ cd Employee-scheduling-backend/toRun
-
Start the application with Maven:
$ mvn quarkus:dev
-
Visit http://localhost:8080 in your browser.
-
With a command Line, navigate to the directory where you have input data, in my case :
$ cd desktop/stage-alten/Employee-scheduling-backend
-
To run the solver, make a POST request with the data as follows:
$ curl -X POST -H "Content-Type: application/json" -d @input.json http://localhost:8080/schedules
The response will be an id.
-
If you want to Terminate the solving Early, use that id with this command :
$ curl -X DELETE -H 'Accept:application/json' http://localhost:8080/schedules/{id}
- The output will be in http://localhost:8080/schedules/{id}
-
To visualize the solution, use the html file :
index.html
in the root directory. -
Replace the
date
string in the script of this html file by the JSON solution you get. -
Or you can use directly the deployed application at : https://employee-scheduling-frontend.vercel.app/