Skip to content

Online shopping Application is a RESTful service where a client can perform CRUD operations on data and can receive the information from the server for this application. It's a collaborative project that concluded in 5 days.

Notifications You must be signed in to change notification settings

gaurav7ingh/Online_Shopping_Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API for Online Shopping Application

  • This application is used by ABC Company admin and their Customer for online shopping

  • This application will help Customer to buy the products and view order details.

  • Customer can register themselves and login. Add product to the cart and purchase it .

  • This application will help Admin to search Product list ,add new products ,remove products and update product .

  • This project is developed by team of 4 Back-end Developers during project week in Masai School.

Tech Stack

  • Java
  • Spring Framework
  • Spring Boot
  • Spring Data JPA
  • Hibernate
  • MySQL
  • Lombok
  • Swagger

Modules

  • Login Module
  • Customer Module
  • Product Module
  • Order Module
  • Cart Module

Features

  • User authentication & validation with uuid key.
  • Admin Features:
    • Admin can register himself.
    • Admin can add new products.
    • Admin can remove products.
    • Admin can update products.
  • Customer Features:
    • A user can register himself or herself on the platform.
    • He/She can check the products item and product Category.
    • If Product is available Customer can add the product to Cart.
    • Customer can order the products from cart.
    • Customer can cancel the order.
    • Customer can apply for return in 7 days.

Contributors

Installation & Run

  • 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=8888

spring.datasource.url=jdbc:mysql://localhost:3306/online_shopping_application
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=root

Swagger Deployed link

http://localhost:8888/swagger-ui/

API Root Endpoint

https://localhost:8888/

API Module Endpoints

Login Module

  • POST /log-in-log-out-controller : User can login with email and password provided at the time of registation

Sample API Response for User Login

POST localhost:8888/login

  • Request Body
    {
        "email": "samrat@gmail.com",
        "password": "swagger"
    }

Video Explainer of flow control

Video Drive Link

E-R Diagram Of Online Shopping Application



Swagger UI



Login Controller



Admin Controller



Customer Controller



Products Controller



Cart Controller



Order Controller



Thank You for Visiting

About

Online shopping Application is a RESTful service where a client can perform CRUD operations on data and can receive the information from the server for this application. It's a collaborative project that concluded in 5 days.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages