Skip to content

Nour-yahyaoui/express

Repository files navigation

Nextgen - Full Stack E-commerce Platform

A complete, production-ready e-commerce solution with a powerful admin dashboard, product management system, offers engine, and seamless shopping experience. Built from scratch over several weeks of dedicated development.


📋 Project Overview

Nextgen is a fully functional e-commerce platform designed for small to medium businesses. It handles everything from product management to order fulfillment, with special attention to user experience and admin efficiency. The platform is deployed and running on Vercel with a serverless PostgreSQL database on Neon.


✨ Features

🛍️ Customer Experience

Feature Description
Product Browsing Filter by category, price range, and sort options (featured, price low/high, newest)
Product Variants Multiple sizes with individual stock tracking for each variant
Wishlist Save favorite items for later with persistent storage
Shopping Cart Add/remove items with quantity controls and stock validation
Special Offers Time-limited promotions with percentage or fixed-price discounts
Cash on Delivery Simple payment method with order confirmation calls
Background Music Calm ambient music player users can control
Responsive Design Fully functional on mobile, tablet, and desktop devices

👑 Admin Dashboard

Feature Description
Product Management Create, edit, and archive products (soft delete)
Variant Management Add/remove sizes with individual stock control
Image Upload Multiple images per product with main image selection (ImageBB integration)
Order Management View orders, update status (pending/confirmed/delivered/cancelled)
Offer Management Create time-limited promotions with countdown timers
Restock System Update stock levels easily with size-specific restocking
Message Inbox View and manage customer inquiries with read/unread status
Low Stock Alerts Get notified when products need restocking
Dashboard Analytics View revenue, order counts, and low stock items at a glance

🛠️ Technical Architecture

Feature Description
Soft Delete System Products are archived, never deleted, preserving order history
Atomic Transactions Orders and stock updates happen together, ensuring data integrity
Serverless Database PostgreSQL hosted on Neon with connection pooling
Image Optimization Lazy loading with skeleton states for better performance
Type Safety Full TypeScript coverage across the entire codebase

🛠️ Technologies Used

Frontend

Technology Purpose
Next.js 16 React framework with App Router for routing and server components
TypeScript Type safety, better developer experience, and maintainability
Tailwind CSS Utility-first styling for rapid UI development
Framer Motion Smooth animations and page transitions
Zustand Lightweight state management for cart and wishlist
Lucide React Clean, consistent icon library

Backend

Technology Purpose
PostgreSQL Relational database with normalized schema
Neon DB Serverless PostgreSQL hosting with connection pooling
ImageBB API Image hosting and optimization service
Next.js API Routes Serverless endpoints for all CRUD operations

Development Tools

Tool Purpose
Turbopack Fast development bundler
ESLint Code quality and consistency
TypeScript Type checking

💪 Skills Demonstrated

Skill How It's Demonstrated
Full Stack Development Complete application from database schema to UI components
Database Design Normalized schema with 8 interconnected tables, foreign keys, and indexes
TypeScript Strong typing across 60+ files with custom interfaces and types
State Management Zustand for cart, wishlist, and order state with persistence
API Design 25+ RESTful endpoints with proper error handling and validation
Database Transactions Atomic operations ensuring stock updates and order creation happen together
Responsive Design Mobile-first approach with Tailwind CSS breakpoints
Performance Optimization Image lazy loading, skeleton states, and code splitting
Real-time Features Stock updates, order status changes, offer countdowns
Soft Delete Implementation Archive system that preserves data integrity
Environment Configuration Secure handling of API keys and database credentials
Deployment Production deployment on Vercel with serverless database

⏱️ Time & Work Investment

Metric Value
Development Time 2-3 weeks of focused work
Lines of Code 10,000+ across 60+ files
Database Tables 8 interconnected tables
API Routes 25+ serverless endpoints
React Components 40+ reusable components
Major Features 20+ implemented features
TypeScript Files 60+ fully typed files

🔧 Key Implementation Details

Product System

  • Each product can have unlimited variants with individual stock tracking
  • Products can be archived (soft delete) to preserve order history
  • Multiple images per product with main image selection
  • Low stock thresholds trigger admin alerts

Order System

  • Cash on Delivery payment method
  • Atomic transactions ensure stock updates and order creation happen together
  • Order status tracking (pending → confirmed → delivered/cancelled)
  • Automatic delivery date recording

Offer System

  • Time-limited promotions with automatic expiration
  • Percentage or fixed-price discounts
  • Real-time countdown timers on active offers
  • Special badge display on product cards

Admin Dashboard

  • Real-time statistics (orders, revenue, low stock alerts)
  • Recent orders overview
  • Quick actions for common tasks
  • Unread messages counter

📊 Database Schema

Table Purpose
categories Product categories with slugs for URLs
products Product information with archive flag and pricing
product_variants Size variants with individual stock levels
product_images Multiple product images with main image flag
orders Order header with customer info and total
order_items Individual items per order with pricing
offers Promotional offers with discount types and date ranges
messages Customer inquiries with read/unread status

🎨 UI/UX Highlights

  • Smooth Navigation - Loading skeletons appear instantly when navigating between pages
  • Image Lazy Loading - Images load progressively with blur placeholders
  • Responsive Grid - Products display in 1-4 columns depending on screen size
  • Animated Filters - Smooth expand/collapse animations for filter panels
  • Music Player - Background music with play/pause and volume controls
  • Clean Modern Design - Minimalist interface with focus on products

🚀 Live Demo

Platform URL
Store https://v4-nextgen.vercel.app

Releases

No releases published

Packages

 
 
 

Contributors

Languages