A modern, full-stack e-commerce solution featuring Material UI design, Framer Motion animations, and real-time analytics
Features β’ Demo β’ Tech Stack β’ Architecture β’ Performance
Get started instantly with demo credentials:
| π€ Role | π§ Email | π Password |
|---|---|---|
| Customer | user@gmail.com |
12345678 |
| Admin | admin@kcart.com |
admin123 |
π‘ Tip: Test the full admin dashboard with real-time analytics using the admin credentials!
|
|
graph LR
A[π€ User] -->|HTTPS| B[βοΈ React Frontend]
B -->|API Calls| C[π Express Server]
C -->|Auth| D[π JWT Middleware]
C -->|CRUD| E[π MongoDB Atlas]
C -->|Analytics| F[π Admin Dashboard]
style A fill:#667eea,stroke:#764ba2,color:#fff
style B fill:#61DAFB,stroke:#0088cc,color:#000
style C fill:#339933,stroke:#2d7a2d,color:#fff
style D fill:#ff6b6b,stroke:#c92a2a,color:#fff
style E fill:#47A248,stroke:#3d8b40,color:#fff
style F fill:#ffd43b,stroke:#fab005,color:#000
π Project Structure
kcart/
βββ π frontend/
β βββ π src/
β β βββ π components/ # Reusable Material UI components
β β βββ π pages/ # Route pages
β β βββ π hooks/ # Custom React hooks
β β βββ π utils/ # Helper functions
β β βββ π theme/ # MUI theme config
β βββ π package.json
β
βββ π backend/
β βββ π routes/ # Express routes
β βββ π models/ # MongoDB schemas
β βββ π middleware/ # Auth & validation
β βββ π controllers/ # Business logic
β βββ π server.js
β
βββ π README.md
| π― Metric | π Score | π Details |
|---|---|---|
| β‘ Load Time | < 1.8s |
Optimized with lazy loading |
| π PageSpeed | 97+ |
Google Lighthouse score |
| π SEO Score | 98/100 |
Search engine optimized |
| β±οΈ Uptime | 99.9% |
Reliable cloud hosting |
| π¬ Animation | 60fps |
Smooth across all devices |
Performance Breakdown:
ββββββββββββββββββββββββββββββββββ
First Contentful Paint βββββββββββββ 0.9s
Time to Interactive βββββββββββββ 1.6s
Speed Index βββββββββββββ 1.8s
Total Blocking Time βββββββββββββ 0.05s
Cumulative Layout Shift βββββββββββββ 0.001
ββββββββββββββββββββββββββββββββββ
|
|
- π Visit kcartt.netlify.app
- π Login with demo credentials (see Quick Access)
- ποΈ Browse 20+ animated products
- π Add items to cart and checkout
- π Access admin dashboard (admin login)
π¦ Installation Steps
# Clone repository
git clone https://github.com/kirtan597/kcart.git
cd kcart
# Install frontend dependencies
cd frontend
npm install
# Install backend dependencies
cd ../backend
npm install
# Configure environment variables
cp .env.example .env
# Edit .env with your MongoDB URI and JWT secret
# Run development servers
npm run dev # Frontend (http://localhost:5173)
cd ../backend
npm run dev # Backend (http://localhost:5000)| π― Feature | π Description | π« Animation |
|---|---|---|
| ποΈ Product Grid | Material UI cards with images & pricing | Scale hover + glow |
| π Cart System | Real-time cart with quantity controls | Slide-in drawer |
| π Authentication | JWT-based login/register | Form validation |
| π Analytics | Sales charts & user statistics | Chart animations |
| π³ Checkout | Multi-step checkout process | Stepper progress |
| π Theme Toggle | Dark/Light mode switching | Color transitions |
Contributions are welcome! Here's how you can help:
- π΄ Fork the repository
- πΏ Create a feature branch (
git checkout -b feature/AmazingFeature) - πΎ Commit your changes (
git commit -m 'Add some AmazingFeature') - π€ Push to the branch (
git push origin feature/AmazingFeature) - π Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
