Skip to main content

Frontend Web Setup

Next.js 15 with React 19.

Prerequisites

  • Node.js v20 or higher
  • pnpm package manager (recommended)

Steps

  1. Clone Frontend Repository
git clone https://github.com/leyu-opensource-platform/leyu-frontend.git
cd leyu-frontend
  1. Install pnpm (if not installed)
npm install -g pnpm
  1. Install Dependencies
pnpm install
  1. Configure Environment
cp .env.example .env

Edit .env:

NEXT_PUBLIC_API_BASE_URL=http://localhost:3003/api
NEXT_PUBLIC_BASE_URL=http://localhost:3000
NEXTAUTH_SECRET=your-strong-secret-here
NEXTAUTH_URL=http://localhost:3000
  1. Start Development Server
pnpm dev

Open the app at http://localhost:3000