REST API for Feedback App written in Go. To learn more, read below
make
make run-api
make test
The docker environment spins up a postgres database as well as the API to listen on port 8080
docker-compose build
docker-compose up
Template is used to store shared information when creating feedback for students. For example, if a class is taught and the teacher has already written feedback for that class, a template can be created so that the same format can be used for different students. A template consists of the following properties:
{
"class": "string", // Class ID
"content": "string", // Template content
}
GET /v1/templates
GET /v1/templates/{id}
POST /v1/templates
PUT /v1/templates
DELETE /v1/templates/{id}
Migrations for updating the postgres db is handled using Robert's pgmgr utility. The migration scripts can be found under ops/db/migrate
This project follows the structure described in Elton Minetto's great blog: Clean Architecture, 2 years later
/entity
holds the models and their core business logic/usecase
holds the overall usecases for the app and structures them as services/api
contains the api-specific logic to run the app (handlers, middleware, router, etc...)/ops
handles any platform operations