Skip to content

The E-Commerce Application is built using Java and Spring Boot, with security, scalability, and ease of maintenance. The backend uses Spring Data JPA to interact with a MySQL database, making it easy to manage and store important entities such as categories, products, orders, etc. Authentication is handled by Auth0, to provide secure REST API.

Notifications You must be signed in to change notification settings

Sirajuddin135/E-Commerce-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

E-Commerce-Application

  • The E-Commerce Application is built using Java and Spring Boot, with security, scalability, and ease of maintenance. The backend uses Spring Data JPA to interact with a MySQL database, making it easy to manage and store important entities such as users, products, categories, orders, and more. User authentication is handled by Auth0, providing secure and reliable means of REST APIs.

  • The APIs are well-documented and easily accessible through Swagger UI, making it simple for developers to test and understand the various endpoints. Overall, this project provides secure Rest APIs to create a scalable platform for businesses to sell their products to customers.

Features

Admin:-

  • Login
  • Users
  • Address
  • Categories
  • Products
  • Price & discount
  • Orders

User:-

  • Registration & Login
  • Fetch categories and products based on category
  • Adding & deleting products to cart
  • Managing address and products quantity
  • Ordering products and fetching order status

Security

  • The API is secured using JSON Web Tokens (JWT) handled by Auth0. To access the API, you will need to obtain a JWT by authenticating with the /login endpoint. The JWT should then be passed in the Authorize option available in the Swagger-ui.

    Example:

    • Authorization: <your_jwt>

Technologies:

  • Java 17 or above
  • Spring Boot 3.0
  • Maven
  • MySQL
  • Spring Data JPA
  • Spring Security
  • JSON Web Tokens (JWT)
  • Auth0
  • Swagger UI

Running the app

  1. Clone the repository: git clone https://github.com/Sirajuddin135/E-Commerce-Application.git
  2. Import the project into STS:
  • Click File > Import...
  • Select Maven > Existing Maven Projects and click Next
  • Browse to the project directory and click Finish
  1. Update the values in application.properties with your MySQL database connection details.
  2. Run the app: Right-click the project in the Package Explorer and click Run As > Spring Boot App.

API documentation

ER-Diagram

ER-Diagram

Swagger-ui

Swagger-UI

API Controllers

Auth_Controller

User_Controller

Address_Controller

Cart_Controller

Category_Controller

Product_Controller

Order_Controller

Thank You

About

The E-Commerce Application is built using Java and Spring Boot, with security, scalability, and ease of maintenance. The backend uses Spring Data JPA to interact with a MySQL database, making it easy to manage and store important entities such as categories, products, orders, etc. Authentication is handled by Auth0, to provide secure REST API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages