# 🧵 UP Handloom and Handicrafts
A fully functional, serverless e‑commerce platform for authentic handloom sarees, Chikankari, and traditional home decor. Built entirely on **AWS**, with real‑time order notifications and Razorpay payment integration.
---
## ✨ Features
- **Product Catalog** – Browse products with category filters (Sarees, Chikankari, Curtains, Bedsheets).
- **Admin Panel** – Secure login to Add/Edit/Delete products and manage the live announcement bar.
- **Shopping Cart** – Add, remove, and update quantities (saved in localStorage).
- **Razorpay Payments** – Seamless checkout with payment gateway integration.
- **Order Notifications** – Instant order alerts to the owner via **Telegram** and **Email (AWS SES)**.
- **Serverless Architecture** – Fully AWS-native, scalable, and cost‑effective.
---
| Component | Service Used |
|---|---|
| Frontend Hosting | Amazon S3 + CloudFront (HTTPS) |
| Backend APIs | Amazon API Gateway (REST) |
| Compute (Logic) | AWS Lambda (Node.js 20.x) |
| Database | Amazon DynamoDB (NoSQL) |
| Email Notifications | Amazon SES |
| Payment Gateway | Razorpay |
| Notifications | Telegram Bot API |
| Permissions & Roles | AWS IAM (Identity & Access Mgmt) |
| --- |
## 🚀 API Endpoints
| Resource | Method | Lambda Function | Description |
|-------------------------|--------|-----------------------|---------------------------------|
| /products | GET | getProducts | Fetch all products |
| /products | POST | createProduct | Add a new product (Admin) |
| /products/{id} | DELETE | deleteProduct | Delete a product (Admin) |
| /admin/login | POST | adminLogin | Admin authentication (JWT) |
| /announcement | GET | getAnnouncement | Get the live announcement |
| /announcement | POST | updateAnnouncement | Update announcement (Admin) |
| /orders | POST | createOrder | Create Razorpay order |
| /verify-payment | POST | verifyPayment | Verify payment & send notif. |
---
## 🔐 Admin Panel
- **Default Password:** admin123
- (Password can be changed by updating the ADMIN\_HASH in the adminLogin Lambda).
--- - -----AUTHOR OR OWNER DETAILS ARE JUST EXAMPLES-----
⭐ If you like this project, feel free to star the repository!