Quick Start
Prerequisites
Make sure your development environment meets the following requirements:
| Tool | Version | Note |
|---|---|---|
| Node.js | >= 16 | LTS version recommended |
| npm | >= 8 | Or use pnpm (recommended) |
| Git | Latest | Version control |
Recommendation
We recommend using pnpm as your package manager for faster installs and less disk usage.
bash
npm install -g pnpmGet the Code
bash
git clone https://github.com/yelog/antdv-next-admin.git
cd antdv-next-adminInstall Dependencies
bash
# Using pnpm (recommended)
pnpm install
# Or using npm
npm installStart Dev Server
bash
# Using pnpm
pnpm dev
# Or using npm
npm run devOnce started, open http://localhost:3000 in your browser.
Log in with the demo accounts:
- Admin:
admin/123456(full permissions) - User:
user/123456(limited permissions)
Build & Preview
bash
# Type check
pnpm type-check
# Production build
pnpm build
# Type check + production build
pnpm build:check
# Preview the build output
pnpm previewEnvironment Variables
The project uses .env files to manage environment variables:
| File | Description |
|---|---|
.env | Variables shared across all environments |
.env.development | Development environment variables |
.env.production | Production environment variables |
Key Variables
bash
# Application title
VITE_APP_TITLE=Antdv Next Admin
# API base URL
VITE_API_BASE_URL=/api
# Enable mock data (enabled by default in development)
VITE_USE_MOCK=trueNote
You need to restart the dev server after modifying environment variables.
Next Steps
- Read Project Structure to understand code organization
- Learn about the Routing System to see how pages are organized
- Check the Permission System for access control
- Use Pro Components to quickly build business pages
