Skip to content

Masterchinedum/nimark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

596 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Nimark E-Commerce Platform

A modern, full-stack e-commerce platform built with Next.js 16, React 19, and TypeScript.

πŸ“ Project Structure

This is a monorepo containing:

πŸ”§ nimark-admin

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

πŸ“– Admin Documentation


πŸ›οΈ nimark-store

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


πŸš€ Quick Start

1. Start the Admin Backend

cd nimark-admin
npm install
npm run dev
# Runs on http://localhost:3000

2. Start the Storefront

cd 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

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     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.)           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“Š Technology Stack

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

🎯 Features

Admin Dashboard

  • βœ… Multi-store management
  • βœ… Product CRUD with variants
  • βœ… Category & brand management
  • βœ… Color & size attributes
  • βœ… Order management
  • βœ… Revenue analytics
  • βœ… Image uploads (Cloudinary)
  • βœ… Payment processing
  • βœ… User authentication

Customer Store

  • βœ… 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

πŸ”§ Development

Prerequisites

  • Node.js 18+
  • PostgreSQL (for admin)
  • npm or yarn

Environment Variables

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"

πŸ“± Ports

🚒 Deployment

Deploy Admin (Vercel)

  1. Push to GitHub
  2. Import in Vercel
  3. Add environment variables
  4. Set up PostgreSQL database
  5. Deploy!

Deploy Store (Vercel)

  1. Push to GitHub
  2. Import in Vercel
  3. Add NEXT_PUBLIC_API_URL and NEXT_PUBLIC_STORE_ID
  4. Deploy!

Both can be deployed to Vercel, Netlify, or any platform supporting Next.js.

πŸ“– Documentation

πŸ—‚οΈ What Happened to Old Frontends?

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)

🎨 Customization

Change Brand Name

  • Admin: Update in nimark-admin/components/navbar.tsx
  • Store: Update in nimark-store/components/layout/navbar.tsx

Change Colors

  • Both: Edit globals.css CSS variables

Add Logo

  • Add to public/ folder
  • Update navbar components

πŸ› Troubleshooting

Admin won't start

  • Check PostgreSQL is running
  • Verify DATABASE_URL
  • Run npx prisma generate
  • Run npx prisma db push

Store shows no products

  • Verify admin is running
  • Check NEXT_PUBLIC_API_URL
  • Confirm NEXT_PUBLIC_STORE_ID is correct
  • Add products in admin first

Images not loading

  • Check Cloudinary config in admin
  • Verify images are uploaded
  • Check next.config.ts remotePatterns

πŸ“ž Support

  • Check documentation in each folder
  • Review browser console for errors
  • Check Network tab for API issues
  • Verify environment variables

πŸŽ‰ Latest Updates (November 2025)

  • βœ… 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

πŸ“„ License

MIT


Built with ❀️ using Next.js 16, React 19, and TypeScript

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages