A REST-Full Web Services API's for an Online Shopping App based on Spring Boot. All functionalities of an online shopping app such as Login, Signup, Add product, Add to cart, remove from cart and Place order are provide which is fully connected with database.
My project performs fundamental operations of an e-commerce website, where our customer's data is validated, mapped, processed with business logic & persisted in the database.
- Java
- Spring
- Spring Boot
- Spring Data JPA
- Hibernate
- Lombok
- MySQL
- Postman
- Swagger UI
- Login Module
- Customer Module
- Order Module
- Bill Module
- Product Module
- Cart Module
- clone our Project into your local machine.
- open any terminal
- git clone
https://github.com/sanajitjana/E-Commerce-API.git
- Open Your STS
- Goto File -> Import -> Select Maven -> Choose Existing Maven -> Click on browse -> Choose the project location -> Select the project -> Finish
- All done, good to go!
- 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.
- Run your application and hit this url on browser -
http://localhost:8888/swagger-ui/
#db specific properties
server.port=8888
spring.datasource.url=jdbc:mysql://localhost:3306/online_shopping_db;
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username="Your SQL username"
spring.datasource.password="Your SQL Password"
#ORM s/w specific properties
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
#validation exception activate
spring.mvc.throw-exception-if-no-handler-found=true
spring.web.resources.add-mappings=false
#enable swagger
spring.mvc.pathmatch.matching-strategy = ANT_PATH_MATCHER