Frontend Web Setup
Next.js 15 with React 19.
Prerequisites
- Node.js v20 or higher
- pnpm package manager (recommended)
Steps
- Clone Frontend Repository
git clone https://github.com/leyu-opensource-platform/leyu-frontend.git
cd leyu-frontend
- Install pnpm (if not installed)
npm install -g pnpm
- Install Dependencies
pnpm install
- 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
- Start Development Server
pnpm dev
Open the app at http://localhost:3000