├── Ecommerce-Frontend
├── src
│ ├── assets
│ │ ├── unplugged.png
│ │ └── react.svg
│ ├── index.css
│ ├── axios.jsx
│ ├── main.jsx
│ ├── components
│ │ ├── CheckoutPopup.jsx
│ │ ├── Product.jsx
│ │ ├── Home.jsx
│ │ ├── AddProduct.jsx
│ │ ├── UpdateProduct.jsx
│ │ ├── Navbar.jsx
│ │ └── Cart.jsx
│ ├── App.jsx
│ ├── Context
│ │ └── Context.jsx
│ └── App.css
├── vite.config.js
├── README.md
├── index.html
├── package.json
└── public
│ └── vite.svg
├── Ecommerce-Backend
├── target
│ ├── classes
│ │ ├── com
│ │ │ └── cart
│ │ │ │ └── ecom_proj
│ │ │ │ ├── model
│ │ │ │ └── Product.class
│ │ │ │ ├── repo
│ │ │ │ └── ProductRepo.class
│ │ │ │ ├── EcomProjApplication.class
│ │ │ │ ├── service
│ │ │ │ └── ProductService.class
│ │ │ │ └── controller
│ │ │ │ └── ProductController.class
│ │ ├── application.properties
│ │ └── data1.sql
│ └── test-classes
│ │ └── com
│ │ └── cart
│ │ └── ecom_proj
│ │ └── EcomProjApplicationTests.class
├── src
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── cart
│ │ │ └── ecom_proj
│ │ │ └── EcomProjApplicationTests.java
│ └── main
│ │ ├── resources
│ │ ├── application.properties
│ │ └── data1.sql
│ │ └── java
│ │ └── com
│ │ └── cart
│ │ └── ecom_proj
│ │ ├── EcomProjApplication.java
│ │ ├── repo
│ │ └── ProductRepo.java
│ │ ├── service
│ │ └── ProductService.java
│ │ ├── model
│ │ └── Product.java
│ │ └── controller
│ │ └── ProductController.java
├── HELP.md
├── pom.xml
├── mvnw.cmd
└── mvnw
└── README.md
/Ecommerce-Frontend/src/assets/unplugged.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GattiHarishKumar/SpringBoot-Reactjs-Ecommerce/HEAD/Ecommerce-Frontend/src/assets/unplugged.png
--------------------------------------------------------------------------------
/Ecommerce-Frontend/src/index.css:
--------------------------------------------------------------------------------
1 | .dark-theme{
2 | --root_background: #1f1f1f;}
3 | .light-theme{
4 | --root_background: white;
5 | }
6 | :root{
7 | background-color: #1f1f1f;
8 | }
--------------------------------------------------------------------------------
/Ecommerce-Backend/target/classes/com/cart/ecom_proj/model/Product.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GattiHarishKumar/SpringBoot-Reactjs-Ecommerce/HEAD/Ecommerce-Backend/target/classes/com/cart/ecom_proj/model/Product.class
--------------------------------------------------------------------------------
/Ecommerce-Frontend/vite.config.js:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'vite'
2 | import react from '@vitejs/plugin-react-swc'
3 |
4 | // https://vitejs.dev/config/
5 | export default defineConfig({
6 | plugins: [react()],
7 | })
8 |
--------------------------------------------------------------------------------
/Ecommerce-Backend/target/classes/com/cart/ecom_proj/repo/ProductRepo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GattiHarishKumar/SpringBoot-Reactjs-Ecommerce/HEAD/Ecommerce-Backend/target/classes/com/cart/ecom_proj/repo/ProductRepo.class
--------------------------------------------------------------------------------
/Ecommerce-Frontend/src/axios.jsx:
--------------------------------------------------------------------------------
1 | import axios from "axios";
2 |
3 | const API = axios.create({
4 | baseURL: "http://localhost:8080/api",
5 | });
6 | delete API.defaults.headers.common["Authorization"];
7 | export default API;
8 |
--------------------------------------------------------------------------------
/Ecommerce-Backend/target/classes/com/cart/ecom_proj/EcomProjApplication.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GattiHarishKumar/SpringBoot-Reactjs-Ecommerce/HEAD/Ecommerce-Backend/target/classes/com/cart/ecom_proj/EcomProjApplication.class
--------------------------------------------------------------------------------
/Ecommerce-Backend/target/classes/com/cart/ecom_proj/service/ProductService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GattiHarishKumar/SpringBoot-Reactjs-Ecommerce/HEAD/Ecommerce-Backend/target/classes/com/cart/ecom_proj/service/ProductService.class
--------------------------------------------------------------------------------
/Ecommerce-Backend/target/classes/com/cart/ecom_proj/controller/ProductController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GattiHarishKumar/SpringBoot-Reactjs-Ecommerce/HEAD/Ecommerce-Backend/target/classes/com/cart/ecom_proj/controller/ProductController.class
--------------------------------------------------------------------------------
/Ecommerce-Backend/target/test-classes/com/cart/ecom_proj/EcomProjApplicationTests.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GattiHarishKumar/SpringBoot-Reactjs-Ecommerce/HEAD/Ecommerce-Backend/target/test-classes/com/cart/ecom_proj/EcomProjApplicationTests.class
--------------------------------------------------------------------------------
/Ecommerce-Backend/src/test/java/com/cart/ecom_proj/EcomProjApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.cart.ecom_proj;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class EcomProjApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Ecommerce-Backend/target/classes/application.properties:
--------------------------------------------------------------------------------
1 | spring.application.name=ecom-proj
2 |
3 | spring.datasource.url=jdbc:h2:mem:Ecommerce
4 | spring.datasource.password=project1
5 | spring.datasource.driverClassName=org.h2.Driver
6 |
7 | spring.jpa.show-sql=true
8 | spring.jpa.hibernate.ddl-auto=update
9 |
10 | spring.jpa.defer-datasource-initialization=true
--------------------------------------------------------------------------------
/Ecommerce-Backend/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | spring.application.name=ecom-proj
2 |
3 | spring.datasource.url=jdbc:h2:mem:Ecommerce
4 | spring.datasource.password=project1
5 | spring.datasource.driverClassName=org.h2.Driver
6 |
7 | spring.jpa.show-sql=true
8 | spring.jpa.hibernate.ddl-auto=update
9 |
10 | spring.jpa.defer-datasource-initialization=true
--------------------------------------------------------------------------------
/Ecommerce-Backend/src/main/java/com/cart/ecom_proj/EcomProjApplication.java:
--------------------------------------------------------------------------------
1 | package com.cart.ecom_proj;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class EcomProjApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(EcomProjApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Ecommerce-Frontend/README.md:
--------------------------------------------------------------------------------
1 | # React + Vite
2 |
3 | This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4 |
5 | Currently, two official plugins are available:
6 |
7 | - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8 | - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9 |
--------------------------------------------------------------------------------
/Ecommerce-Frontend/src/main.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import ReactDOM from "react-dom/client";
3 | import App from "./App.jsx";
4 | import "./index.css";
5 | import { useContext } from "react";
6 | import { AppProvider } from "./Context/Context.jsx";
7 | // import { BrowserRouter as Router } from "react-router-dom";
8 | ReactDOM.createRoot(document.getElementById("root")).render(
9 |
{item.name}
19 |Quantity: {item.quantity}
20 |Price: ${item.price * item.quantity}
21 |86 | 87 |
PRODUCT DESCRIPTION :
98 |{product.description}
99 |