React_clothing_brand

Lunark Wear Monorepo (Next.js Full-Stack)

This project is a full-stack Next.js App Router application with clean root-level separation:

Root Structure

project-root/
  frontend/
  backend/
  shared/
  scripts/
  .env.example
  .gitignore
  package.json
  README.md

Frontend

frontend contains:

Backend

backend contains:

Shared

shared contains:

Environment Setup

  1. Copy root .env.example to frontend/.env (and optionally frontend/.env.local):
DATABASE_URL="file:./dev.db"
AUTH_SECRET="change_this_to_a_long_random_secret"
NEXT_PUBLIC_APP_NAME="Lunark Wear"
ESEWA_GATEWAY_URL="https://rc-epay.esewa.com.np/api/epay/main/v2/form"
ESEWA_STATUS_URL="https://rc-epay.esewa.com.np/api/epay/transaction/status/"
ESEWA_PRODUCT_CODE="EPAYTEST"
ESEWA_SECRET_KEY="replace_with_esewa_secret"

DATABASE_URL="file:./dev.db" is resolved by backend Prisma initialization to backend/prisma/dev.db.

Commands (run from root)

npm run prisma:generate
npm run db:seed
npm run dev

Other commands:

Auth Seed Accounts

Notes