- Go 1.21
- PostgreSQL 16
- Docker-Compose
- Following the Clean Architecture Principles
- HTTP routing with go-chi/chi framework
- Work with PostgreSQL. Migration files generation. SQL queries.
- Registration and authentication. Working with JWT. Middleware.
- Graceful Shutdown
- Running project in Docker-Compose
- Linting project with golangci-lint
- Generated Swagger docs with swaggo/http-swagger
/v1/auth/sign-up
with "POST" method to create new user/v1/auth/sign-in
with "POST" method to login user and create JWT
/v1/book
with "POST" method to create new book/v1/book/{bookId}
with "GET" method to get book by ID/v1/book
with "GET" method to get all books by for current user/v1/book/{bookId}
with "PUT" method to update book by ID/v1/book/{bookId}
with "DELETE" method to delete book by ID
git clone https://github.com/rogaliiik/library.git
make run
localhost:8080/swagger/