Skip to content

Dev-Tanvir-Ahamed/EliteGadget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📌 Project Overview

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.

🛠 Implementation Details

🌐 Frontend (Next.js)

  • State Management: Redux Toolkit
  • Styling: Tailwind CSS
  • Routing: Next.js App Router
  • Authentication: JWT & Firebase Social Login
  • UI Components: Shadcn & Material-UI

🔧 Backend (Node.js + Express + Mongoose)

  • Database: MongoDB
  • ORM/ODM: Mongoose & Prisma
  • Authentication: JWT
  • Payment Integration: SSLCommerz
  • Search Feature: Meilisearch

🏗️ Weekend Case Study: Building the Backend for Electronic Gadgets Shop

📅 Date: October 21-22, 2023
🎯 Goal: Set up the backend for the Electronic Gadgets Shop project using Node.js, Express, and MongoDB.


✅ Tasks Completed

  • 🚀 Project setup with TypeScript and ESLint.
  • 🔑 Implemented JWT-based authentication.
  • 📦 Designed MongoDB schemas for User and Product.
  • 🔄 Created RESTful API endpoints for user and product management.

⚠️ Challenges Faced

  • 🔹 Implementing secure JWT authentication.
  • 🔹 Restricting access to admin-only routes.
  • 🔹 Configuring TypeScript with Express and Mongoose.

🔑 Solutions Implemented

  • 🔹 Used jsonwebtoken for token generation and verification.
  • 🔹 Created roleMiddleware for role-based access control.
  • 🔹 Extended the Request interface to include a user property.

🚀 Results

  • ✅ Functional backend with secure authentication.
  • ✅ Clean and maintainable code with TypeScript and ESLint.

🎯 Lessons Learned

  • 📌 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. 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published