Spring Boot REST API for BookTracker. Features Clean Architecture, PostgreSQL, and MinIO storage.
1.5K
⚠️ Note: This image requires PostgreSQL, MinIO and Redis to function. The easiest way to run the full stack is using the provided Docker Compose file from the GitHub repository:
https://github.com/Nirtas/booktracker-backend
There is a ready docker-compose.dev.yml file that will set up the infrastructure for use with this image.
Backend for tracking your reading progress, built with Clean Architecture principles. This server manages books, users, detailed reading history and secure cover storage.
The project follows Clean Architecture to ensure maintainability and testability:
ER diagram and workflows (User registration (without verification), Email verification, Book details update (without cover) and Genre fetching) are available in GitHub repository.
cp .env.example .env
.env file (DB, MinIO, Argon2, SMTP, JWT).Start infrastructure to run the application from your IDE:
docker compose -f docker-compose.dev.yml up --build -d
Build and start all services (app + infrastructure) in containers:
docker compose -f docker-compose.prod.yml up --build -d
Once the server is running and Swagger enabled in .env file (ENABLE_SWAGGER_UI=true), explore the API and test
endpoints via Swagger UI:
http://localhost:8080/swagger-ui/index.html
All endpoints are prefixed with /api/v1.
| Method | Endpoint | Auth Required | Description |
|---|---|---|---|
| Auth | |||
POST | /auth/register | No | Register new user |
POST | /auth/confirm-registration | No | Confirm registration |
POST | /auth/login | No | Login |
POST | /auth/refresh | No | Refresh tokens |
POST | /auth/logout | No | Logout |
POST | /auth/resend-code | No | Resend verification code |
| Users | |||
GET | /users/me | Yes | Get current user details |
| Books | |||
GET | /books | Yes | Get user's books |
POST | /books | Yes | Create book |
GET | /books/{id} | Yes | Get book by id |
DELETE | /books/{id} | Yes | Delete book by id |
PATCH | /books/{id} | Yes | Update book details |
POST | /books/{id}/cover | Yes | Upload book cover |
DELETE | /books/{id}/cover | Yes | Delete book cover |
GET | /books/{id}/cover | Yes | Get book cover |
| Genres | |||
GET | /genres | Yes | Get all genres |
GET | /genres/{id} | Yes | Get genre by id |
| Languages | |||
GET | /languages | Yes | Get all languages |
GET | /languages/{code} | Yes | Get language by code |
Content type
Image
Digest
sha256:9277127e9…
Size
237 MB
Last updated
7 months ago
docker pull jerael/booktracker-backend