This is the backend for the Resident Assistant scheduling tool. It is written in Go 1.17. It uses GORM as an ORM and Gin as a router/context manager.
this should ideally be set up with the frontend here.
- Download Golang, the default installer for whatever platform should work fine.
- Download PostgreSQL, this is required for the server to run.
- Clone this repository with
git clone https://github.com/ulrokx/raduty-s.git
- Run
go mod download
in the main directory that has the go.mod file. - Run
go run ./main.go
- Algorithm in
/api/controllers/schedule.go
doesn't always fill the days up. - Extract the main generation function out to test separately
- Write tests :-)
- Add camel case json tags to structs