HomeElectrics is a full-stack e-commerce platform built using the MERN stack, designed with secure authentication, optimized REST APIs, and payment processing via Stripe.
The system supports product browsing, cart management, order placement, and payment validation with a focus on backend correctness and performance.
- Secure JWT-based authentication system
- Role-based access (Admin / User)
- Product catalog management (50+ products supported)
- Persistent cart architecture
- Stripe payment integration for end-to-end transaction validation
- Optimized REST API layer with reduced response latency (~74ms improvement)
- Responsive UI with Tailwind CSS
- Production-ready deployment
- React.js
- Tailwind CSS
- Axios for API communication
- Client-side routing with React Router
- Node.js
- Express.js
- RESTful API design
- JWT Authentication
- Middleware-based request validation
- MongoDB
- Mongoose ODM
- Indexed collections for optimized query performance
- User registers / logs in
- Server validates credentials
- JWT token generated and returned
- Token stored client-side
- Protected routes validated using middleware
This ensures stateless and secure session handling.
- Integrated Stripe API for secure checkout
- Validated 50+ test transactions
- Server-side order verification before payment confirmation
- Protected webhook-based validation to prevent spoofed transactions
- Reduced product load latency by over 1 second via API response tuning
- Improved transaction processing time by ~74ms
- Implemented modular route structure for scalability
- Separated business logic from controllers for maintainability
- React.js
- Tailwind CSS
- JavaScript (ES6+)
- Node.js
- Express.js
- JWT
- REST APIs
- MongoDB
- Mongoose
- Stripe API
Live: https://home-electrics.vercel.app
GitHub: https://github.com/fiercfly/HomeElectrics
git clone https://github.com/fiercfly/HomeElectrics
Frontend:
npm install
npm run dev
Backend:
npm install
npm start