A scalable Bookstore Management System built using Spring Boot Microservices Architecture. The project demonstrates service decomposition, API Gateway, Service Discovery, JWT Authentication, and inter-service communication following modern backend development practices.
Client
│
▼
API Gateway
│
┌─────────────┴─────────────┐
│ │
▼ ▼
User Service Book Service
│ │
└─────────────┬─────────────┘
│
Eureka Discovery Server
│
MySQL Database
- Single entry point for all client requests
- Routes requests to appropriate microservices
- Centralized request handling
- Eureka Service Registry
- Service registration
- Dynamic service discovery
Responsible for:
- User Registration
- User Login
- JWT Authentication
- Password Encryption
- User Management
Responsible for:
- Add Book
- Update Book
- Delete Book
- Search Books
- Pagination
- Category Management
- Spring Boot Microservices
- Spring Cloud Gateway
- Eureka Discovery Server
- JWT Authentication
- RESTful APIs
- Layered Architecture
- Spring Data JPA
- MySQL Integration
- Exception Handling
- Validation
- Lombok
- Maven Build
- Docker Ready
- Java 21
- Spring Boot
- Spring Cloud
- Spring Security
- Spring Data JPA
- Maven
- MySQL
- JWT Authentication
- BCrypt Password Encoder
- IntelliJ IDEA
- Postman
- Git
- GitHub
- Docker
bookstore-microservices
│
├── api-gateway
│
├── discovery-server
│
├── user-service
│
├── book-service
│
├── docker-compose.yml
│
└── README.md
| Method | Endpoint | Description |
|---|---|---|
| POST | /auth/register | Register User |
| POST | /auth/login | Login User |
| Method | Endpoint | Description |
|---|---|---|
| POST | /books | Add Book |
| GET | /books | Get All Books |
| GET | /books/{id} | Get Book |
| PUT | /books/{id} | Update Book |
| DELETE | /books/{id} | Delete Book |
- JWT Authentication
- Password Encryption
- Protected APIs
- Role-Based Authorization
- Secure REST APIs
git clone https://github.com/Luffy992/bookstore-microservices.gitRun discovery-serverRun user-serviceRun book-serviceRun api-gatewayAll APIs were tested using Postman.
Modules Tested:
- Authentication
- User Management
- Book Management
This project helped me understand:
- Microservices Architecture
- API Gateway
- Service Discovery
- REST API Design
- Spring Security
- JWT Authentication
- Inter-Service Communication
- Spring Cloud
- Docker Basics
- Config Server
- Order Service
- Notification Service
- Docker Compose Deployment
- Kubernetes
- Redis Cache
- Kafka Messaging
- CI/CD Pipeline
Somesh Ramola
GitHub: https://github.com/Luffy992
LinkedIn: www.linkedin.com/in/somesh-ramola
This project is licensed under the MIT License.