Skip to content

Natnsis/Ecommerce

Repository files navigation

🛒 E-Commerce Platform

Modern full-stack e-commerce application with admin dashboard, secure checkout, and responsive design.

🔹 Features

  • User Authentication via Supabase
  • Admin Panel for product and order management
  • Shopping Cart & Stripe Checkout
  • Order Management (users + admin)
  • Responsive Design (mobile + desktop)
  • Data Validation using Zod
  • Efficient Data Fetching & Caching with TanStack Query

🛠️ Tech Stack

Layer Technologies
Frontend Next.js 14+, React, Tailwind CSS
Backend Supabase (Auth, Database, Storage)
Data Fetching TanStack Query (React Query)
Validation Zod
Payments Stripe
Deployment Vercel

🚀 Installation

  1. Clone the repository
git clone https://github.com/Natnsis/Ecommerce.git
cd Ecommerce
  1. Install dependencies
npm install

3.Configure environment variables -create .env.locals

NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY=your_supabase_key          # anon/public key
NEXT_SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
STRIPE_PUBLISHABLE_KEY=pk_test_...
STRIPE_SECRET_KEY=sk_test_...
NEXT_PUBLIC_APP_URL=http://localhost:3000

4.Start the development server

npm run dev

Open http://localhost:3000

📂 Project Structure

ecommerce/
├── app/
│   ├── (root)/
│   │   ├── admin/
│   │   │   ├── add-product/
│   │   │   │   ├── [id]/page.tsx
│   │   │   │   └── page.tsx
│   │   │   ├── order-list/
│   │   │   ├── products/
│   │   │   └── users/
│   │   ├── auth/
│   │   ├── checkout/
│   │   ├── context/
│   │   ├── dashboard/
│   │   ├── finalize/
│   │   ├── learnMore/
│   │   ├── order/
│   │   └── success/
│   ├── api/
│   ├── controllers/
│   ├── provider/
│   │   └── TanstackProvider.tsx
│   ├── schemas/
│   │   ├── auth.schema.ts
│   │   └── product.schema.ts
│   ├── favicon.ico
│   ├── globals.css
│   ├── layout.tsx
│   └── page.tsx
├── components/
└── README.md

✅ Future Improvements

  • Real-time order & stock notifications (Supabase Realtime)
  • AI-powered product recommendations
  • Multi-language / i18n support
  • Wishlist / favorites feature
  • Advanced search & filtering
  • Discount codes & promotions system
  • Full CI/CD pipeline (GitHub Actions → Vercel)
  • Performance optimizations (image optimization, lazy loading, partial prerendering)
  • Unit + integration tests (Vitest / Playwright)

📸 Quick Overview

Landing Auth Products Admin Cutomer-Dashobard Add Product

About

A full-stack e-commerce application where admins can manage products (add, update, delete) and customers can browse items and purchase them through a simple, responsive interface. Built with Next.js, React, Supabase, and modern data-fetching and form-handling tools to simulate real-world e-commerce workflows.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors