Skip to content

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

41 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Nexus Store — Enterprise Electronics & PC Hardware E-Commerce

Next.js Node.js Express.js MongoDB Mongoose Redis TailwindCSS

Nexus Store is a high-performance, full-stack electronics retail platform built with Next.js App Router, Express.js, MongoDB (Mongoose ODM), and Redis.


✨ Features

  • 🎮 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.

🛠️ Architecture & Tech Stack

Frontend (/frontend)

  • Framework: Next.js 14 (App Router)
  • Language: TypeScript
  • Styling: TailwindCSS, Glassmorphism design system
  • State Management: Zustand (Cart & Wishlist persistence)
  • Icons: Lucide React

Backend (/backend)

  • Runtime: Node.js & TypeScript
  • Framework: Express.js
  • Database: MongoDB
  • ODM: Mongoose
  • Cache: Redis
  • Security: JWT authentication, bcryptjs, CORS, input validation

📁 Repository Structure

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

🚀 Getting Started

Prerequisites

  • Node.js >= 18.x
  • PostgreSQL database instance
  • Redis server instance (optional, fallback available)

1. Clone the Repository

git clone https://github.com/YOUR-USERNAME/YOUR-REPO-NAME.git
cd E-Commerce

2. Frontend Setup

cd frontend
npm install
npm run dev

The storefront will be available at http://localhost:3000.

3. Backend Setup

cd ../backend
npm install

Configure 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

🔑 Default Admin Credentials (Seeded)

  • Email: admin@nexusstore.net
  • Password: Admin@123456

📝 License

This project is open-source under the MIT License.

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages