- I developed this REST API for an E-commerce REST API. This API performs all the fundamental CRUD operations of any e-commerce application platform with user validation at every step.
- User can register/login-logout
- can view all items
- can view restaurants
- Find items by category
- Add to cart/edit into the cart
- Place Order
- Get order details
- Get Bills
- Java
- MySQL
- Spring Boot
- Spring data JPA
- RESTful api
- Hibernate
- Swagger
- Lombok
- Maven
- Postman
- Spring tool suite eclipse
- Git & GitHub
- Gain excessive knowledge on application of Java, MySQL and SpringBoot.
- Gain knowledge on creating RESTful API.
- Enjoyed the process of learning and creating the application.
- Proper Exception Handling
- Proper Input Validation
- Data Stored in the database(MySQL)
- User Authentication of signup, Login, and Logout
- You can clone this repo and start the serve on localhost
- Before running the API server, we should update the database config inside the application.properties file.
- Update the port number, username, and password as per our local database config.
- server.port=8585
- spring.datasource.url=jdbc:mysql://localhost:3306/emcommarcedb
- spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
- spring.datasource.username=Your UserName
- spring.datasource.password=YourPassword
- spring.jpa.hibernate.ddl-auto=update
- spring.jpa.show-sql=true
- spring.mvc.pathmatch.matching-strategy = ANT_PATH_MATCHER
-to check the swagger http://localhost:8585/swagger-ui/
- In this application, whenever the user and restaurant perform any action, always they have to use a username. So, first, login or sign up to get the username and then proceed with the task.