This project is a fully functional e-commerce platform built with React for the frontend, Spring Boot for the backend, and SQL with H2 for the database. It provides a comprehensive solution for online shopping, featuring user registration, product browsing, a shopping cart, and order management.
- Product Management: Browse and search for products with detailed descriptions and images.
- Shopping Cart: Add, remove, and manage products in a user-friendly shopping cart interface.
- Order Processing: Seamless order placement and order history management for users.
- Admin Panel: Admin functionalities for managing products, orders, and users.
- Responsive Design: Mobile-friendly design ensuring optimal user experience across devices.
- Frontend: React, HTML, CSS, JavaScript
- Backend: Spring Boot, RESTful APIs
- Database: H2 (for development/testing), SQL (for production)
- Others: JSON Web Tokens (JWT) for authentication, Axios for HTTP requests
- Node.js: Ensure you have Node.js installed to run the React frontend.
- Java: Ensure you have Java 8 or higher installed to run the Spring Boot backend.
- Maven: Ensure Maven is installed to manage the backend project dependencies.
-
Navigate to the frontend directory:
cd frontend
-
Install dependencies:
npm install
-
Run the React development server:
npm start
The React app will run on
http://localhost:3000
.
-
Navigate to the backend directory:
cd backend
-
Build the Spring Boot application:
mvn clean install
-
Run the application:
mvn spring-boot:run
The backend server will run on
http://localhost:8080
.
-
Database Configuration: The application uses H2 database for development. For production, you can configure a different SQL database by updating the
application.properties
file in thesrc/main/resources
directory of the backend. -
Frontend Configuration: The API endpoint for the frontend can be configured in the React application's environment files.
- Access the platform: Open your browser and go to
http://localhost:5173
. - Register/Login: Create an account or log in to access the platform's features.
- Browse Products: Explore available products and add them to your cart.
- Checkout: Complete the purchase process and view your order history.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/YourFeature
- Commit your changes:
git commit -m 'Add a feature'
- Push to the branch:
git push origin feature/YourFeature
- Open a pull request.
For questions or support, please contact arryamanmishra@gmail.com or create an issue in this repository.