This is a simple CRUD application written in Go using Gin and GORM. It uses PostgreSQL as the database and Docker to run the application.
- Regions: id, name
- Persons: id, forename, surname, patronymic, gender, region_id
- GET /region - returns a list of regions
- POST /region - creates a region
- DELETE /region/:id - deletes a region
- GET /person - returns a list of persons
- POST /person - creates a person
- GET /person/:id - returns a person
- DELETE /person/:id - deletes a person
- POST /person/:id - updates a person
- GET /person/region/:id - returns a residents of the region
- Go 1.21
- PostgreSQL
- Docker
- Clone this repository
- Run
make run
to start the application