A fully functional e-commerce backend built with Java 17 and Spring Boot 3.3, featuring JWT authentication, PostgreSQL database, RESTful APIs, and a scalable microservices architecture.
- Java 17
- Spring Boot 3.3
- Spring Security (JWT Authentication)
- PostgreSQL
- Hibernate (JPA)
- Docker & Docker Compose
✅ User Authentication & Authorization (JWT)
✅ Product Management (CRUD Operations)
✅ Order Management & Checkout Process
✅ Secure REST APIs
✅ Role-based Access Control
✅ PostgreSQL Database Integration
✅ Dockerized Deployment
To clone the repository, run:
git clone https://github.com/HNLad/ecommerce-java.git
Ensure you have Java 17, Maven, and PostgreSQL installed.
Update application.properties
with your PostgreSQL credentials:
spring.datasource.url=jdbc:postgresql://localhost:5432/ecommerce_db
spring.datasource.username=your_username
spring.datasource.password=your_password
mvn clean install
java -jar target/ecommerce-java.jar
- User Login
POST /api/auth/login
- User Registration
POST /api/auth/register
- Get All Products
GET /api/products
- Add a Product (Admin only)
POST /api/products
- Place an Order
POST /api/orders
- Get Order Details
GET /api/orders/{id}
To run the service with Docker, use:
docker-compose up --build
- Fork the repository.
- Create a new feature branch.
- Commit and push changes.
- Open a Pull Request.