Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛒 ShopNest - Modern Full-Stack E-Commerce Platform

NestJS Next.js 15 TypeScript MongoDB Tailwind CSS

A feature-rich, high-performance Full-Stack E-Commerce Platform built with NestJS, Next.js 15 (App Router), MongoDB Atlas, and pnpm Monorepo. Features role-based access control, JWT authentication, persistent cart management, product reviews, interactive pagination, and AI-assisted product search.


✨ Key Features

🛍️ Frontend (Client)

  • Next.js 15 App Router with Turbopack for super-fast server rendering.
  • Modern Responsive Design with custom gradient branding (ShopNest), Shadcn UI, and Tailwind CSS.
  • Hero Section & Dynamic Product Grid with status indicators, ratings, and pagination.
  • Cart & Order System featuring guest local storage and user server-side cart sync.
  • Dark/Light Theme Toggle powered by next-themes.

⚙️ Backend (API)

  • NestJS Modular Architecture with clean dependency injection, Controllers, DTOs, and Services.
  • MongoDB Atlas Integration via @nestjs/mongoose schemas.
  • JWT & Cookie Authentication with refresh token handling and Passport.js strategy.
  • Swagger Interactive API Documentation available at /api.
  • Global Pipes & Helmet Security for strict request validation and headers protection.

🛠️ Tech Stack

Domain Technologies Used
Frontend Next.js 15, React 19, TypeScript, Tailwind CSS, Shadcn UI, Lucide Icons, TanStack Query
Backend NestJS, TypeScript, Mongoose, Passport.js, JWT, Argon2, Swagger, Helmet
Database MongoDB Atlas (Cloud NoSQL Database)
Monorepo & Build pnpm Workspaces, TurboRepo, Cross-Env

🚀 Getting Started

Prerequisites

  • Node.js: v18+ or v20+
  • pnpm: pnpm install -g pnpm

1. Clone the repository

git clone https://github.com/YOUR_USERNAME/e-ticarat.git
cd e-ticarat

2. Install dependencies

pnpm install

3. Setup Environment Variables

apps/server/.env:

PORT=5000
ALLOWED_ORIGINS=http://localhost:3000
MONGODB_URI=mongodb+srv://YOUR_DB_USER:YOUR_PASSWORD@cluster.mongodb.net/ecommerce
JWT_SECRET=your_jwt_secret
JWT_ACCESS_SECRET=your_access_secret
JWT_REFRESH_SECRET=your_refresh_secret

apps/web/.env.local:

NEXT_PUBLIC_API_URL=http://localhost:5000/v1

4. Seed Sample Products

cd apps/server
node seed-products.js

5. Run Development Servers

Start Backend (NestJS):

cd apps/server
pnpm run dev

Start Frontend (Next.js):

cd apps/web
pnpm run dev
  • Frontend Application: http://localhost:3000
  • Backend API Server: http://localhost:5000/v1
  • Swagger Documentation: http://localhost:5000/api

📜 License

This project is open-source under the MIT License.

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.