Another way to simply schedule employee's shift using Go for the backend and React for the user interface
- Clone this repository
git clone https://github.com/rrborja/shift-schedule
- Go to the
cmd
directory and run the shell scriptinstall.sh
- When you run the shell script, make sure you are in the current working directory of
cmd
- Make sure the Node.js and Go runtime environments are installed in your system
- Once NPM installation is complete, you may access the page
http://localhost:3000
- To retrieve the current shift
- GET
http://localhost:8080/MM/dd/yyyy
- GET
- To add the employee to the current shift
- PUT
http://localhost:8080/MM/dd/yyyy
- The content type for the response body is JSON
-
name
: name of the employee -id
: id of the employee -start
: 0-indexed exclusive start time of the employee -end
: 0-indexed inclusive end time of the employee
- PUT