smartcart_project

🛒 SmartCart - Full Stack eCommerce Web App

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.


🚀 Live Demo


📸 Screenshots

🏠 Home Page

(Add screenshot here) Home

🔐 Login Page

(Add screenshot here) Login

🛍️ Product Page

(Add screenshot here) Products


📁 Project Structure

smartcart-project/
│
├── backend/
│   ├── server.js
│   ├── routes/
│   ├── models/
│   ├── package.json
│
├── frontend/
│   ├── index.html
│   ├── style.css
│   ├── script.js
│
└── README.md

⚙️ Tech Stack

💻 Frontend

🖥️ Backend

🗄️ Database


🚀 Features


🔌 API Endpoints

🔹 Base URL

https://your-backend-url.onrender.com

🔹 Routes

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

🛠️ Installation (Local Setup)

1️⃣ Clone Repository

git clone https://github.com/your-username/smartcart_project.git

2️⃣ Backend Setup

cd backend
npm install
npm start

3️⃣ Frontend Setup

Open:

frontend/index.html

in your browser


🔑 Environment Variables

Create .env file in backend folder:



🌐 Deployment


⚠️ Important Notes

https://your-backend-url.onrender.com/api

👩‍💻 Author

Madhu


⭐ Future Improvements


🙌 Acknowledgements