A modern and intuitive e-commerce platform built with React (frontend) and Spring Boot (backend).
- Browse Products: Discover a wide range of products intuitively categorized.
- Product Details: View detailed information, images, and reviews for each product.
- Add to Cart: Easily add items to your shopping cart for purchase.
- Secure Checkout: Experience a secure and streamlined checkout process.
- Admin Dashboard (Coming Soon): Manage products, inventory, orders, and more.
These instructions will help you set up and run the project on your local machine for development and testing purposes.
Make sure you have the following software installed on your system:
- Node.js and npm: https://nodejs.org/
- Java Development Kit (JDK): https://www.oracle.com/java/technologies/downloads/
- Maven: https://maven.apache.org/download.cgi
- Git: (Optional if you want to clone the repository) https://git-scm.com/downloads
- Your favorite IDE: We recommend IntelliJ IDEA for the backend (Spring Boot) and VS Code for the frontend (React).
-
Clone the repository:
git clone https://github.com/your-username/xmart.git cd xmart
-
Backend (Spring Boot):
- Open the
backend
directory in your IDE. - Navigate to the
EcomProjApplication.java
file and run it. Your backend server will typically start onhttp://localhost:8080/
.
- Open the
-
Frontend (React):
- Open the
frontend
directory in your terminal. - Install dependencies:
npm install
- Start the development server:
npm run dev
- Your frontend will usually run on
http://localhost:5173/
.
- Open the
- Once both the backend and frontend servers are running, you can access the application in your web browser at
http://localhost:5173/
.
Here's an overview of the project structure:
xmart/
βββ backend/ # Spring Boot backend application
β βββ src/main/java/com/telusko/ecom_proj/
β βββ controller/ # REST Controllers
β βββ model/ # Data Models (Entities)
β βββ repo/ # Data Repositories (JPA)
β βββ service/ # Business logic
βββ frontend/ # React frontend application
β βββ src/
β βββ components/ # Reusable React components
β βββ App.jsx # Main application component
βββ README.md # This README file
βββ ... # Other configuration files (e.g., pom.xml, package.json)
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspiration from other great e-commerce platforms.
- Thanks to the open-source community for amazing tools and libraries.
Happy shopping! π