Spring Boot backend for managing customer accounts, order processing, and customer-related data in an e-commerce system.
✅ Customer registration & authentication
✅ Order management
✅ Customer data storage
✅ RESTful API for seamless integration
src/
├── main/
│ ├── java/com/ecommerce/customer/
│ │ ├── entities/
│ │ │ ├── Customer.java
│ │ │ ├── Orders.java
│ │ │ ├── Products.java
│ │ ├── repositories/
│ │ │ ├── CustomerRepo.java
│ │ │ ├── OrdersRepo.java
│ │ │ ├── ProductsRepo.java
│ │ ├── services/
│ │ │ ├── CustomerService.java
│ │ │ ├── OrdersService.java
│ │ │ ├── ProductService.java
│ │ ├── controllers/
│ │ │ ├── AdminController.java
│ │ ├── application/
│ │ │ ├── EcommerceAdminApplication.java
│ ├── resources/
│ │ ├── application.properties
└── test/
Endpoint | Method | Request Body | Description |
---|---|---|---|
POST /customer/register |
POST | Customer |
Register a new customer |
POST /customer/order |
POST | Orders |
Place a new order |
GET /customer/orders |
GET | customerId as param |
Retrieve customer orders |
- Configure MySQL in
application.properties
:
spring.datasource.url=jdbc:mysql://localhost:3306/ecommerce_db
spring.datasource.username=your_username
spring.datasource.password=your_password
spring.jpa.hibernate.ddl-auto=update
- Run the application:
mvn spring-boot:run
- Backend: Spring Boot 3.3.5
- Database: MySQL
- Authentication: Basic authentication/session-based
- Build Tool: Maven
MIT © 2024