A production-ready cloud-native backend system built using Spring Boot microservices, MongoDB Atlas, Docker, and JWT authentication, designed for free-tier cloud deployment on Render.
- Monorepo Microservices Architecture
- API Gateway Pattern
- Stateless JWT Authentication
- Independent service deployment
Client | API Gateway |
| | | User Service Order Service Inventory Service | MongoDB Atlas (Free Tier)
| Layer | Technology |
|---|---|
| Backend | Java 17, Spring Boot 3 |
| Database | MongoDB Atlas (Free Tier) |
| Security | JWT Authentication |
| Containers | Docker |
| CI/CD | GitHub Actions |
| Deployment | Render |
- User registration and login
- JWT token generation
- Secure authentication
- MongoDB persistence
- Create and fetch orders
- Communicates with Inventory Service
- MongoDB order storage
- Product and stock management
- Stock validation on order placement
- MongoDB inventory storage
- Single entry point for all requests
- JWT validation
- Routes requests to backend services
docker-composeis used only for local development.
Render deploys each microservice independently.
docker-compose up --build
#Environment Variables
PORT=8080
MONGO_URI=mongodb+srv://<username>:<password>@cluster.mongodb.net/db
JWT_SECRET=super-secret-key