- Project Code : malicious-liquid-1505
- We have developed this REST API for an Online Vegetable Sales Application.
- This API performs all the fundamental CRUD operations of any Online Vegetable Sales Application with user validation at every step.
- This project is developed by team of 3 Back-end Developers during project week in Masai School.
- Java
- Spring Framework
- Spring Boot
- Spring Data JPA
- Hibernate
- MySQL
- Swagger
- Login, Logout Module
- User Module
- Admin Module
-
User and Admin authentication & validation with JWT Authentication.
-
Admin Features:
- Administrator Role of the entire application
- Only registered admins with valid Authentication token can add/update/delete customer from main database
- Admin can access the details of different User/Customers .
-
User Features:
- A user can register himself or herself on the platform.
- He/She can check the Buy Vegetable ,Placed order Makes payment and Many more Functionality.
- Before running the API server, you should update the database config inside the application.properties file.
- Update the port number, username and password as per your local database config.
server.port=8088
spring.datasource.url=jdbc:mysql://localhost:3306/salesApp
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=SQLUsername(i.e=root)
spring.datasource.password=SQLUserPassword(i.e=root)
https://localhost:8088/
http://localhost:8088/swagger-ui/
POST //api/adminlogin
: Admin can login with Email and password provided at the time of registation