Next-Gen E-Commerce is a full-stack e-commerce platform leveraging React.js for the frontend and Spring Boot (Java) for the backend. The project integrates LLama Vision technology to enhance product recognition and optimize inventory management. With NoSQL and SQL databases, it provides a scalable and efficient architecture.
✅ User Authentication – Secure JWT-based login & registration
✅ Product Management – CRUD operations for products
✅ Shopping Cart – Real-time cart functionality
✅ Order Processing – Seamless checkout with payment gateway
✅ AI-Powered Search – LLama Vision-based product search
✅ Inventory Management – Real-time stock tracking
✅ Admin Dashboard – Manage users, products, and orders
✅ RESTful API – Secure and optimized backend services
- React.js (Vite)
- Tailwind CSS (UI Styling)
- Fetch API (For API calls)
- Java + Spring Boot
- Spring Security (Authentication & Authorization)
- RESTful APIs (Spring MVC)
- JPA (Database interactions)
- MySQL (Relational Data)
- Node.js (v16+)
- Java (JDK 17+)
- MySQL
The backend runs on port 8080, and you can test the API endpoints using Postman or any other API testing tool.
-
Clone the repository:
git clone https://github.com/PranavDarshan/Next-Gen-Ecommerce.git cd Next-Gen-Ecommerce/backend
-
Set up the database:
- MySQL: Create a database named
ecom
- The
mysql
folder contains the SQL queries required to generate the necessary tables for the application to function properly. Make sure to execute these queries in your MySQL database before running the backend.
- MySQL: Create a database named
-
Configure
application.properties
:spring.application.name=prodBackend # MySQL Connection spring.datasource.url=jdbc:mysql://localhost:3306/ecom spring.datasource.username=root spring.datasource.password=admin spring.mvc.async.request-timeout=PT10M
-
Run the backend:
mvn spring-boot:run
-
Navigate to the frontend:
cd ../frontend
-
Install dependencies:
npm install
-
Start the frontend server:
npm run dev
-
Open
http://localhost:3000
in your browser.
- User registers and logs in.
- Browse products and add them to the cart.
- Checkout and generate a bill.
- Admins manage orders, users, and inventory.
All endpoints run on http://localhost:8080
Method | Endpoint | Description |
---|---|---|
POST | /api/product |
Add a new product |
POST | /api/staff/login |
Staff login authentication |
POST | /api/scan |
Scan product from an image |
POST | /api/upload |
Upload two product images |
POST | /api/update-stock |
Update product stock |
POST | /api/billing |
Create a transaction (billing) |
POST | /api/login |
User login authentication |
Thank you to the following people who have contributed to this project:
- Pranav Darshan - @PranavDarshan
- Raghuveer Rajesh - @Raghoeveer
Want to improve this project? Follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Commit your changes:
git commit -m "Add new feature"
- Push to GitHub:
git push origin feature/your-feature-name
- Open a Pull Request (PR).
This project is licensed under the MIT License.
MIT License
Copyright (c) 2024 Pranav Darshan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
📧 Pranav Darshan
GitHub: @PranavDarshan