This project is configured as a single Next.js application:
- UI is rendered by Next.js
- APIs are served through Next API routes under
/api/v1/*
- Install dependencies:
npm install
- Start dev server:
npm run dev
- Open:
http://localhost:3000
- Main runtime env file:
.env - Example template:
.env.example - Frontend API base uses
NEXT_PUBLIC_API_BASE_URL(default/api/v1) - Razorpay public key uses
NEXT_PUBLIC_RAZORPAY_KEY
src/app- Next.js app router shellsrc/ui- migrated UI code and featuressrc/api- API controllers/routes/models/config used by Next API routessrc/pages/api/v1/[...path].js- Next API catch-all handler
All existing endpoints remain under the same paths, e.g.:
/api/v1/auth/*/api/v1/profile/*/api/v1/course/*/api/v1/payment/*/api/v1/reach/*
- There is no separate backend process; frontend and API run from the same Next app.