Nexus Store is a high-performance, full-stack electronics retail platform built with Next.js App Router, Express.js, MongoDB (Mongoose ODM), and Redis.
- 🎮 Modern Gaming Hardware Storefront: High-converting, responsive UI with glassmorphism aesthetics and custom micro-animations.
- 🌳 Dynamic Multi-Level Category Tree: Unlimited nested subcategories (e.g.
Laptops > Gaming Laptops) powered by MongoDB document relations. - ⚙️ Specification-Based Dynamic Filters: Filter products dynamically by technical specifications (e.g., RAM Capacity, GPU Model, Processor Type).
- 🏷️ Product Variant System: Multi-attribute variant management (e.g., 1TB vs 2TB SSD, Color choices) with individual SKU tracking and stock management.
- 🌍 Internationalization (i18n): Full English (LTR) and Arabic (RTL) support with localized routing.
- 🚚 Governorate-Based Shipping: Dynamic shipping rate calculation across Egypt governorates & cities.
- ⚡ High Performance Caching: Redis integration for high-speed category trees, catalog browsing, and session management.
- Framework: Next.js 14 (App Router)
- Language: TypeScript
- Styling: TailwindCSS, Glassmorphism design system
- State Management: Zustand (Cart & Wishlist persistence)
- Icons: Lucide React
- Runtime: Node.js & TypeScript
- Framework: Express.js
- Database: MongoDB
- ODM: Mongoose
- Cache: Redis
- Security: JWT authentication, bcryptjs, CORS, input validation
E-Commerce/
├── frontend/ # Next.js 14 Storefront
│ ├── app/ # App router pages & layouts
│ │ ├── [lang]/ # Localized route handler (i18n)
│ │ └── page.tsx # Root home page
│ ├── components/ # UI components
│ │ └── store/ # Navbar, Filters, Rigs, Cards
│ ├── lib/ # Zustand store & utilities
│ └── package.json
│
├── backend/ # Node.js Express REST API
│ ├── prisma/ # Database schema & seed scripts
│ │ ├── schema.prisma # Enterprise PostgreSQL schema
│ │ └── seed.ts # Database seed runner
│ ├── src/ # Source code
│ │ ├── modules/ # Products, Categories, Auth
│ │ ├── config/ # Prisma & Redis services
│ │ └── app.ts # Express application
│ └── package.json
│
└── README.md
- Node.js >= 18.x
- PostgreSQL database instance
- Redis server instance (optional, fallback available)
git clone https://github.com/YOUR-USERNAME/YOUR-REPO-NAME.git
cd E-Commercecd frontend
npm install
npm run devThe storefront will be available at http://localhost:3000.
cd ../backend
npm installConfigure your environment variables in backend/.env:
PORT=5000
DATABASE_URL="postgresql://user:password@localhost:5432/nexus_store_db?schema=public"
REDIS_URL="redis://localhost:6379"
JWT_SECRET="your-super-secret-jwt-key"Initialize database & seed mock data:
npx prisma db push
npx prisma db seed
npm run dev- Email:
admin@nexusstore.net - Password:
Admin@123456
This project is open-source under the MIT License.