{"id":15131442,"url":"https://github.com/gattiharishkumar/springboot-reactjs-ecommerce","last_synced_at":"2025-10-26T19:31:21.807Z","repository":{"id":255484216,"uuid":"851920338","full_name":"GattiHarishKumar/SpringBoot-Reactjs-Ecommerce","owner":"GattiHarishKumar","description":"This project is a full-stack e-commerce application, developed with a Java Spring Boot backend and a React.js frontend. The application provides a comprehensive platform for users to browse products, add items to their cart, and proceed to checkout.","archived":false,"fork":false,"pushed_at":"2024-09-06T20:46:18.000Z","size":116,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-19T03:43:00.409Z","etag":null,"topics":["crud-application","css","ecommerce-website","html5","java","javascript","maven-plugin","maven-pom","mvc-architecture","mvc-framework","reactjs","spring","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GattiHarishKumar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-03T23:10:14.000Z","updated_at":"2024-12-14T01:38:49.000Z","dependencies_parsed_at":"2024-09-05T18:16:57.402Z","dependency_job_id":"8914b603-da26-4580-bb02-fbcac628ef5b","html_url":"https://github.com/GattiHarishKumar/SpringBoot-Reactjs-Ecommerce","commit_stats":null,"previous_names":["gattiharishkumar/springboot-reactjs-ecommerce"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GattiHarishKumar%2FSpringBoot-Reactjs-Ecommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GattiHarishKumar%2FSpringBoot-Reactjs-Ecommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GattiHarishKumar%2FSpringBoot-Reactjs-Ecommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GattiHarishKumar%2FSpringBoot-Reactjs-Ecommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GattiHarishKumar","download_url":"https://codeload.github.com/GattiHarishKumar/SpringBoot-Reactjs-Ecommerce/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238387219,"owners_count":19463508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crud-application","css","ecommerce-website","html5","java","javascript","maven-plugin","maven-pom","mvc-architecture","mvc-framework","reactjs","spring","spring-boot"],"created_at":"2024-09-26T03:42:12.962Z","updated_at":"2025-10-26T19:31:21.801Z","avatar_url":"https://github.com/GattiHarishKumar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# 🛍️ Full Stack E-commerce Web Application\n\nA full-stack **E-commerce application** using **Spring Boot** (Java) for the backend and **ReactJS with Vite** for the frontend. This application demonstrates the integration of RESTful APIs with a modern frontend stack, ideal for learning and demonstration purposes.\n\n---\n\n## 📁 Project Structure\n\n```\nSpringBoot-Reactjs-Ecommerce-main/\n├── Ecommerce-Backend/       # Spring Boot REST API backend\n├── Ecommerce-Frontend/      # React + Vite frontend application\n```\n\n---\n\n## 🧩 Backend - Spring Boot\n\n### 🔧 Technologies Used\n\n* Java 17+\n* Spring Boot\n* Spring Data JPA\n* MySQL (can be adapted)\n* Maven\n\n### 📂 Backend Directory Structure\n\n```\nEcommerce-Backend/\n├── controller/      # REST endpoints\n├── model/           # JPA entity classes\n├── repo/            # Spring Data JPA interfaces\n├── service/         # Business logic\n├── resources/\n│   ├── application.properties\n│   └── data1.sql\n└── pom.xml          # Maven build config\n```\n\n### ⚙️ Setup Instructions\n\n1. **Database Setup:**\n\n   * Create a MySQL database, e.g., `ecomdb`.\n   * Update `application.properties`:\n\n     ```properties\n     spring.datasource.url=jdbc:mysql://localhost:3306/ecomdb\n     spring.datasource.username=root\n     spring.datasource.password=yourpassword\n     spring.jpa.hibernate.ddl-auto=update\n     ```\n\n2. **Run the App:**\n\n   ```bash\n   cd Ecommerce-Backend\n   mvn spring-boot:run\n   ```\n\n3. **Data Initialization:**\n\n   On first run, `data1.sql` inserts seed product data into your DB.\n\n### 📡 REST API Endpoints\n\n| Method | Endpoint         | Description        |\n| ------ | ---------------- | ------------------ |\n| GET    | `/products`      | Fetch all products |\n| GET    | `/products/{id}` | Get product by ID  |\n| POST   | `/products`      | Add new product    |\n| PUT    | `/products/{id}` | Update product     |\n| DELETE | `/products/{id}` | Delete product     |\n\n---\n\n## 💻 Frontend - React + Vite\n\n### 🔧 Technologies Used\n\n* ReactJS\n* Vite (bundler)\n* Axios (API calls)\n* Bootstrap (UI)\n* JavaScript (ES6+)\n\n### 📂 Frontend Directory Structure\n\n```\nEcommerce-Frontend/\n├── public/\n├── src/\n│   ├── components/      # Reusable components\n│   ├── pages/           # Page-level components\n│   ├── App.jsx          # App layout\n│   └── main.jsx         # Entry point\n├── package.json\n└── vite.config.js\n```\n\n### ▶️ Getting Started\n\n1. **Install dependencies:**\n\n   ```bash\n   cd Ecommerce-Frontend\n   npm install\n   ```\n\n2. **Run the app:**\n\n   ```bash\n   npm run dev\n   ```\n\n   This will launch the frontend at `http://localhost:5173`.\n\n3. **Connect to Backend:**\n\n   Update the backend URL in API service files (usually inside `src/` or `src/services/`) if needed:\n\n   ```js\n   axios.get('http://localhost:8080/products')\n   ```\n\n### 🧩 Features\n\n* Product List (from Spring Boot backend)\n* Dynamic rendering using React components\n* Fully responsive UI\n* Easy integration with further features (cart, checkout, login)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgattiharishkumar%2Fspringboot-reactjs-ecommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgattiharishkumar%2Fspringboot-reactjs-ecommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgattiharishkumar%2Fspringboot-reactjs-ecommerce/lists"}