This REST API was built with Golang and the Gin web framework. It is backed by a PostgreSQL database and uses unit tests to ensure its quality.
I built this REST API as a learning project to learn Golang and backend development. I am currently learning Golang and wanted to build something to solidify my understanding of the language.
Start API server (locally)
$ docker run --rm -d -p 5432:5432 --name=api-db -e POSTGRES_PASSWORD=test postgres:15
$ make run
Alternatively, using docker compose
$ make docker-run
Run tests
$ make test
- GET
/v1
- GET
/v1/users
- GET
/v1/users/{id}
- PUT
v1/users/{id}
- DELETE
v1/users/{id}
- POST
/v1/signup
- POST
/v1/signin