English | 中文
This project is a customized version based on V3 Admin Vite, focusing on providing a ready-to-use frontend-backend admin system solution. By integrating complete business modules with standardized API contracts, it enables rapid backend integration and quick deployment.
✨ Complete Business Modules: Built-in user management, role management, permission management, and other core admin features 🔗 Backend Contract Integration: Strictly follows OpenAPI specifications for seamless backend API integration 🚀 Quick Setup: Clear directory structure and standardized development workflow with low learning curve 📦 Ready to Use: Complete CRUD examples, permission control, Excel export, and other common features 🎨 Enterprise Quality: Modern tech stack based on Vue 3 + TypeScript + Element Plus
Important
Companion Backend Project: V3.Admin.Backend
This frontend project is designed to work seamlessly with the companion backend. The backend project provides:
- RESTful APIs following OpenAPI specification
- JWT authentication and authorization
- User, Role, and Permission management endpoints
- Complete API documentation and contracts
Tip
For the best development experience, clone and run both frontend and backend projects together. The frontend is pre-configured to connect to the backend at http://localhost:5176.
Recommended Environment
- Latest version of
Visual Studio Codeor AI IDECursorandTrae - Install the recommended plugins in the
.vscode/extensions.jsonfile node20.19+ or 22.12+pnpm10+
Local Development
# Clone the project
git clone https://github.com/un-pany/v3-admin-vite.git
# Enter the project directory
cd v3-admin-vite
# Install dependencies
pnpm i
# Start the development server
pnpm devBuild
# Build for the staging environment
pnpm build:staging
# Build for the production environment
pnpm buildLocal Preview
# Execute the build command first to generate the dist directory, then run the preview command
pnpm previewCode Check
# Code linting and formatting
pnpm lint
# Unit tests
pnpm testCommit Guidelines
feat New feature
fix Bug fix
perf Performance improvement
refactor Code refactoring
docs Documentation and comments
types Type-related changes
test Unit tests related
ci Continuous integration, workflows
revert Revert changes
chore Chores (update dependencies, modify configurations, etc)
This project has integrated complete core admin management features:
- ✅ User list query (pagination, search, filter)
- ✅ Add user (password strength validation, role assignment)
- ✅ Edit user information
- ✅ Delete user (soft delete mechanism)
- ✅ Export Excel report
- ✅ Complete permission control (route-level + button-level)
- ✅ Password change functionality
- ✅ Role list query
- ✅ Create/edit/delete roles
- ✅ Role permission assignment
- ✅ Concurrent update conflict handling
- ✅ Role usage status check
- ✅ Permission list query
- ✅ Create/edit/delete permissions
- ✅ Permission code format validation
- ✅ Permission usage status check
- ✅ Hierarchical permission structure
- OpenAPI Specification Compliance: All API calls strictly follow backend OpenAPI specification
- Unified Response Format:
ApiResponse<T>standardized response structure (success, code, message, data, timestamp, traceId) - Complete Error Handling: Covers validation errors, authorization errors, concurrent conflicts, and other business logic error codes
- JWT Authentication: Automatically carries Bearer Token, unified handling of unauthorized situations
- API Contract Documents: Detailed API contract documents for each module
- Clear Directory Structure: Organized by business modules, separation of public and private resources
- Type Safety: Complete TypeScript type definitions
- Composables: Reusable business logic encapsulation
- Unit Tests: Corresponding test cases for core functionalities
- Development Documentation: Complete spec, quickstart, tasks for each module
- Original Project: V3 Admin Vite by @un-pany
- Vue 3 Documentation: https://vuejs.org/
- Element Plus Documentation: https://element-plus.org/
- Vite Documentation: https://vitejs.dev/
Multiple Environments: Development, staging, and production environments
Multiple Themes: Normal, dark, and deep blue themes
Multiple Layouts: Left-side, top, and hybrid layouts
Homepage: Different dashboard pages for different users
Error Pages: 403, 404
Mobile Compatibility: Layouts compatible with mobile screen resolutions
Others: SVG sprite sheet, dynamic sidebar, dynamic breadcrumbs, tab navigation, content zoom and fullscreen, composable functions
Vue3: Vue3 + script setup with the latest Vue3 Composition API
Element Plus: The Vue3 version of Element UI
Pinia: The legendary Vuex5
Vite: Really fast
Vue Router: The routing system
TypeScript: A superset of JavaScript
pnpm: A faster, disk-space-saving package manager
Scss: Consistent with Element Plus
CSS Variables: Primarily controls layout and color in the project
ESLint: Code linting and formatting
Axios: Sends network requests
UnoCSS: A high-performance, flexible atomic CSS engine
This project is based on V3 Admin Vite for customization. Thanks to original author @pany and all contributors for their hard work!
MIT License
Project Goal: Provide a ready-to-use enterprise-level frontend-backend admin system solution, allowing development teams to focus on business logic rather than infrastructure setup.
