SmartCart is a full-stack eCommerce application where users can browse products, login, and manage their cart. Built using modern web technologies with a clean UI and REST API backend.
(Add screenshot here)
(Add screenshot here)
(Add screenshot here)
smartcart-project/
│
├── backend/
│ ├── server.js
│ ├── routes/
│ ├── models/
│ ├── package.json
│
├── frontend/
│ ├── index.html
│ ├── style.css
│ ├── script.js
│
└── README.md
https://your-backend-url.onrender.com
| Method | Endpoint | Description |
|---|---|---|
| GET | / | Check server status |
| GET | /api/products | Get all products |
| POST | /api/login | User login |
| POST | /api/cart | Add item to cart |
git clone https://github.com/your-username/smartcart_project.git
cd backend
npm install
npm start
Open:
frontend/index.html
in your browser
Create .env file in backend folder:
script.js:https://your-backend-url.onrender.com/api
localhost after deploymentMadhu