E-Commerce Electronics Shop Using Next.js Node Express - PostgreSQL Complete Project
Source Code : https://github_________________________________com/cai-ro-coders/E-Commerce-Electronics-Shop-Using-Next.js-Node-Express---PostgreSQL-Complete-Project
A full-stack e-commerce application for an Electronics Shop, with a customer storefront and a complete role-based admin panel.
Frontend: Next.js (App Router), React, TypeScript, Tailwind CSS v4
Backend: PostgreSQL, Prisma ORM
### Storefront
- Home page with hero, featured product, categories, featured products and trust strip
- Product catalogue with search, category/brand/price filters, sorting and pagination
- Product detail pages with image gallery, specifications, reviews, wishlist and add-to-cart
- Category and brand browsing
- Slide-over cart, full cart page and checkout flow
- Stripe card payments with Stripe Elements, PayPal Checkout buttons and cash-on-delivery options
- Customer registration, login, forgot/reset password
- Account area: profile, addresses, wishlist, cart, notifications, security and login history
- Order history, order detail and public order tracking
- Contact page
- Responsive, mobile-first layout with light/dark theme support
### Admin console
- Secure staff-only login with role-aware navigation and route guard
- Dashboard with revenue/order charts, KPI cards, best sellers, low stock and recent activity
- Products: list, search/filter, create, edit, detail view, image uploader, specifications, CSV/JSON export
- Orders: list, status/payment filters, detail view, status updates, tracking, invoice print
- Customers: list, create, edit, status changes, detail view with order history
- Categories and brands: CRUD with image/logo upload and status management
- Coupons: create/edit/delete, usage counts and discount totals
- Reviews: moderation (approve/reject/pending), rating filters and stats
- Users & roles: staff accounts, permissions, account status, activity log
- Inventory: stock adjustment, low-stock view, inventory logs, FullCalendar restock/audit events, CSV export
- Notifications: list, mark read, mark all read, create and delete
- Files: drag-and-drop uploads, folders, stats, external file registration
- Reports: sales, inventory and customer reports with date ranges, charts and CSV/JSON export
- Settings: grouped store settings saved in bulk
- Collapsible responsive sidebar, mobile drawer, breadcrumbs, global product search, dark mode
- Loading skeletons, empty states, SweetAlert2 confirmations and toast feedback
- Server-side DataTables pattern with pagination, sorting, search, export and print
### Platform / API
- REST API with JWT authentication (HTTP-only cookie or Bearer token)
- Role-based access control (`admin`, `staff`, `customer`) and a permission catalog
- Zod request validation, centralized error handling, rate limiting and Helmet
- Prisma models and realistic seed data
- Swagger/OpenAPI documentation at `http://localhost:4000/api/docs`
- CSV/JSON exports for products, orders, inventory, reports and settings backup
