Delivery_Rice is an e-commerce platform that allows users to order high-quality rice from anywhere. It's a fast alternative to traditional fast food — quick, but much better. This backend is built with the Spring Boot framework and provides a RESTful API that allows users to interact with the platform, manage their accounts, and place orders.
- User registration and login
- Role-based access control (Client, Delivery, Admin)
- CRUD operations for user addresses
- CRUD operations for products (Admin role only)
- Multiple payment options: Bizum, Cash, Card
- Order management:
- Place orders
- Select and modify shipping addresses
- Choose payment methods
- Track order status
- View order history
- Java 21 (JDK)
- Spring Boot
- Spring Security
- Hibernate JPA
- RESTful API
- Layered Architecture (Repository, Service, Controller)
- Design patterns used:
- Repository Pattern
- DTO Pattern
- Unit testing with JUnit and Mockito
- Open your mySQL Server (default port: 3306)
- The application is configured to use the default phpMyAdmin credentials:
Username:rootPassword: (blank) If your MySQL setup uses different credentials, update thespring.datasource.usernameandspring.datasource.passwordfields insrc/main/resources/application.properties. - Run the application with
mvn spring-boot:run, the first run will generate the database automatically. The application runs on the default phpMyAdmin user "root". - Open phpMyAdmin and Click on
Importand select thebd_service_deliveryRice.sqlfile.
- Run all unit tests with:
mvn clean test