Giter Club home page Giter Club logo

minor-2-backend's Introduction

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
  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

minor-2-backend's People

Contributors

sandhu-sahil avatar

Stargazers

Sourhead avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.