Skip to content

Quick Start

Prerequisites

Make sure your development environment meets the following requirements:

ToolVersionNote
Node.js>= 16LTS version recommended
npm>= 8Or use pnpm (recommended)
GitLatestVersion control

Recommendation

We recommend using pnpm as your package manager for faster installs and less disk usage.

bash
npm install -g pnpm

Get the Code

bash
git clone https://github.com/yelog/antdv-next-admin.git
cd antdv-next-admin

Install Dependencies

bash
# Using pnpm (recommended)
pnpm install

# Or using npm
npm install

Start Dev Server

bash
# Using pnpm
pnpm dev

# Or using npm
npm run dev

Once 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 preview

Environment Variables

The project uses .env files to manage environment variables:

FileDescription
.envVariables shared across all environments
.env.developmentDevelopment environment variables
.env.productionProduction 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=true

Note

You need to restart the dev server after modifying environment variables.

Next Steps

Released under the MIT License.