Skip to content

A simple scheduler for workers written in Go. UI is powered by React.

License

Notifications You must be signed in to change notification settings

rrborja/shift-schedule

Repository files navigation

Shift Scheduler

Build Status codecov Go Report Card GoDoc License: GPL v2+

Another way to simply schedule employee's shift using Go for the backend and React for the user interface

Usage

  1. Clone this repository git clone https://github.com/rrborja/shift-schedule
  2. Go to the cmd directory and run the shell script install.sh
  3. When you run the shell script, make sure you are in the current working directory of cmd
  4. Make sure the Node.js and Go runtime environments are installed in your system
  5. Once NPM installation is complete, you may access the page http://localhost:3000

API

  1. To retrieve the current shift
    • GET http://localhost:8080/MM/dd/yyyy
  2. 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

About

A simple scheduler for workers written in Go. UI is powered by React.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published