EliteGadget is an electronic gadgets e-commerce platform designed to provide a seamless shopping experience. This project was built using Next.js (frontend) and Node.js with Express and Mongoose (backend) following a modular architecture.
- State Management: Redux Toolkit
- Styling: Tailwind CSS
- Routing: Next.js App Router
- Authentication: JWT & Firebase Social Login
- UI Components: Shadcn & Material-UI
- Database: MongoDB
- ORM/ODM: Mongoose & Prisma
- Authentication: JWT
- Payment Integration: SSLCommerz
- Search Feature: Meilisearch
📅 Date: October 21-22, 2023
🎯 Goal: Set up the backend for the Electronic Gadgets Shop project using Node.js, Express, and MongoDB.
- 🚀 Project setup with TypeScript and ESLint.
- 🔑 Implemented JWT-based authentication.
- 📦 Designed MongoDB schemas for
User
andProduct
. - 🔄 Created RESTful API endpoints for user and product management.
- 🔹 Implementing secure JWT authentication.
- 🔹 Restricting access to admin-only routes.
- 🔹 Configuring TypeScript with Express and Mongoose.
- 🔹 Used
jsonwebtoken
for token generation and verification. - 🔹 Created
roleMiddleware
for role-based access control. - 🔹 Extended the
Request
interface to include auser
property.
- ✅ Functional backend with secure authentication.
- ✅ Clean and maintainable code with TypeScript and ESLint.
- 📌 Gained hands-on experience with JWT and role-based access control.
- 📌 Improved my understanding of TypeScript and Mongoose.
This case study highlights my problem-solving skills and backend development expertise. 🚀