A modern, full-stack e-commerce platform built with Next.js 16, React 19, and TypeScript.
This is a monorepo containing:
Admin Dashboard & Backend API (Updated 2025)
- Multi-tenant store management
- Product, category, brand management
- Prisma + PostgreSQL database
- NextAuth 5 authentication
- Paystack & Stripe integration
- Cloudinary image management
- Revenue analytics & reporting
Tech Stack: Next.js 16, React 19, Prisma 6, TypeScript 5.9
Customer-Facing Storefront (New - 2025)
- Modern shopping experience
- Product browsing & filtering
- Shopping cart with persistence
- Checkout integration
- Responsive design
- Image galleries
Tech Stack: Next.js 16, React 19, Zustand, shadcn/ui, TypeScript 5.9
π Store Documentation | π Setup Guide
cd nimark-admin
npm install
npm run dev
# Runs on http://localhost:3000cd nimark-store
npm install
# Configure .env.local with your store ID
echo "NEXT_PUBLIC_API_URL=http://localhost:3000/api" > .env.local
echo "NEXT_PUBLIC_STORE_ID=your-store-id" >> .env.local
npm run dev
# Runs on http://localhost:3001βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CUSTOMERS β
β β β
β nimark-store (Port 3001) β
β Next.js 16 | React 19 | TypeScript β
β Product Browsing | Cart | Checkout | Filters β
ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββ
β API Calls
β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β nimark-admin (Port 3000) β
β Next.js 16 | Prisma | PostgreSQL β
β Product Management | Orders | Analytics β
β β β
β PostgreSQL Database (Products, Orders, etc.) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Layer | Admin | Store |
|---|---|---|
| Framework | Next.js 16 | Next.js 16 |
| React | 19.2 | 19.2 |
| TypeScript | 5.9 | 5.9 |
| Styling | Tailwind 4 | Tailwind 4 |
| UI Components | Radix UI | shadcn/ui |
| State | Zustand | Zustand |
| Database | Prisma + PostgreSQL | - |
| Auth | NextAuth 5 | - |
| Payments | Paystack + Stripe | API Integration |
| Images | Cloudinary | Next/Image |
- β Multi-store management
- β Product CRUD with variants
- β Category & brand management
- β Color & size attributes
- β Order management
- β Revenue analytics
- β Image uploads (Cloudinary)
- β Payment processing
- β User authentication
- β Product browsing
- β Category filtering
- β Color & size filters
- β Product detail pages
- β Image galleries
- β Shopping cart
- β Persistent cart storage
- β Quantity management
- β Checkout integration
- β Mobile responsive
- β Toast notifications
- Node.js 18+
- PostgreSQL (for admin)
- npm or yarn
nimark-admin (.env):
DATABASE_URL="postgresql://..."
AUTH_SECRET="your-secret"
CLOUDINARY_CLOUD_NAME="..."
CLOUDINARY_API_KEY="..."
CLOUDINARY_API_SECRET="..."
PAYSTACK_SECRET_KEY="..."
STRIPE_SECRET_KEY="..."nimark-store (.env.local):
NEXT_PUBLIC_API_URL="http://localhost:3000/api"
NEXT_PUBLIC_STORE_ID="your-store-id"- Admin: http://localhost:3000
- Store: http://localhost:3001
- Push to GitHub
- Import in Vercel
- Add environment variables
- Set up PostgreSQL database
- Deploy!
- Push to GitHub
- Import in Vercel
- Add
NEXT_PUBLIC_API_URLandNEXT_PUBLIC_STORE_ID - Deploy!
Both can be deployed to Vercel, Netlify, or any platform supporting Next.js.
This project previously had two outdated frontends:
- β nimark-client (Next.js 14, outdated) - Deleted
- β nimark-front (Next.js 14, incomplete) - Deleted
They have been replaced with:
- β nimark-store (Next.js 16, modern, complete)
- Admin: Update in
nimark-admin/components/navbar.tsx - Store: Update in
nimark-store/components/layout/navbar.tsx
- Both: Edit
globals.cssCSS variables
- Add to
public/folder - Update navbar components
- Check PostgreSQL is running
- Verify DATABASE_URL
- Run
npx prisma generate - Run
npx prisma db push
- Verify admin is running
- Check NEXT_PUBLIC_API_URL
- Confirm NEXT_PUBLIC_STORE_ID is correct
- Add products in admin first
- Check Cloudinary config in admin
- Verify images are uploaded
- Check
next.config.tsremotePatterns
- Check documentation in each folder
- Review browser console for errors
- Check Network tab for API issues
- Verify environment variables
- β Updated nimark-admin to Next.js 16 & React 19
- β Created brand new nimark-store from scratch
- β Removed outdated frontends
- β Modern TypeScript throughout
- β Production-ready architecture
- β Comprehensive documentation
MIT
Built with β€οΈ using Next.js 16, React 19, and TypeScript