中数电动v2vue版本

zouzexu 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
.cursor 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
.husky 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
.idea 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
.vscode 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
licenses 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
mock 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
public 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
src 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
.editorconfig 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
.env.development 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
.env.production 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
.eslintrc-auto-import.json 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
.prettierignore 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
.prettierrc.yaml 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
.stylelintignore 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
.stylelintrc.cjs 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
CHANGELOG.md 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
LICENSE 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
README.en-US.md 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
README.md 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
commitlint.config.cjs 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
eslint.config.ts 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
index.html 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
package.json 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
pnpm-lock.yaml 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
tsconfig.json 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
uno.config.ts 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө
vite.config.ts 38f3a8046e 中数电动v2版本初始化脚手架 1 сар өмнө

README.en-US.md

vue3-element-admin

中数电动

有来技术 有来技术 有来技术

Introduction

vue3-element-admin is a minimalist enterprise-level backend management frontend template built with Vue3, Vite7, TypeScript, and Element-Plus. It comes with complementary Java backend youlai-boot and Node backend youlai-nest. A simplified version vue3-element-template and a JavaScript version vue3-element-admin-js are also available for developers to quickly start development.

Project Features

  • Simple and Easy-to-use: Upgraded version of vue-element-admin for Vue3, with minimal encapsulation and easy to get started.
  • Data Interaction: Support for Mock data and online API documentation, with accompanying Java and Node backend source code.

  • System Functions: Provides user management, role management, menu management, department management, dictionary management, and other functional modules.

  • Permission Management: Supports dynamic routing, button permissions, role permissions, and data permissions.

  • Infrastructure: Provides internationalization, multiple layouts, dark mode, full screen, watermark, API documentation, and code generator functionality.

  • Continuous Updates: Project is continuously updated with real-time updates of tools and dependencies.

Project Screenshots

🖥️ Dashboard

API Documentation

📲 Mobile Version

Project Source Code

Project Gitee Github GitCode
vue3-element-admin ✅ vue3-element-admin vue3-element-admin vue3-element-admin
vue3-element-admin JS Version vue3-element-admin-js vue3-element-admin-js vue3-element-admin-js
vue3-element-admin Lite Version vue3-element-template vue3-element-template vue3-element-template
vue-uniapp-admin Mobile Version vue-uniapp-admin vue-uniapp-admin vue-uniapp-admin
Java Backend youlai-boot youlai-boot youlai-boot
Node Backend youlai-nest youlai-nest youlai-nest

Development Guide

Name Link
Video Tutorial https://www.bilibili.com/video/BV1eFUuYyEFj
Project Setup Building a Backend Management System from Scratch with Vue3, Vite, TypeScript, and Element-Plus
Official Documentation https://www.youlai.tech/vue3-element-admin/
Code Standards ESLint V9 + Prettier + Stylelint + EditorConfig for Standardized and Unified Frontend Code Style
Commit Standards Husky + Lint-staged + Commitlint + Commitizen + cz-git for Git Commit Standards
API Documentation https://www.apifox.cn/apidoc/shared-195e783f-4d85-4235-a038-eec696de4ea5

Project Setup

  • Environment Preparation
Environment Type Name
Development Tool Visual Studio Code
Runtime Environment ^20.19.0
  • Quick Start

    # Clone repository
    git clone https://gitee.com/youlaiorg/vue3-element-admin.git
    
    # Change directory
    cd vue3-element-admin
    
    # Install pnpm
    npm install pnpm -g
    
    # Set mirror source (optional)
    pnpm config set registry https://registry.npmmirror.com
    
    # Install dependencies
    pnpm install
    
    # Start development server
    pnpm run dev
    

Project Deployment

After executing the pnpm run build command, the project will be bundled and a dist directory will be generated. Next, upload the files from the dist directory to the /usr/share/nginx/html directory on your server and configure Nginx for reverse proxy.

pnpm run build

Here is an example Nginx configuration:

server {
    listen      80;
    server_name localhost;

    location / {
        root   /usr/share/nginx/html;
        index  index.html index.htm;
    }

    # Reverse proxy configuration
    location /prod-api/ {
        # Please replace api.youlai.tech with your backend API address, and keep the trailing slash /
        proxy_pass http://api.youlai.tech/;
    }
}

For more detailed information, please refer to this article: Nginx Installation and Configuration.

Local Mock

The project supports both online and local Mock interfaces. By default, it uses online interfaces. To switch to Mock interfaces, modify the VITE_MOCK_DEV_SERVER value in the .env.development file to true.

Backend API

If you have a basic understanding of Java development, follow these steps to convert online API to local backend API and create an enterprise-level full-stack development environment to help you on your full-stack journey.

  1. Get the backend source code based on Java and SpringBoot from youlai-boot.
  2. Follow the instructions in the backend project's README.md to set up and run locally.
  3. Modify the value of VITE_APP_API_URL in the .env.development file, changing it from https://api.youlai.tech to http://localhost:8989.

Notes

  • Auto import plugin is disabled by default

Component type declarations have been automatically generated for the template project. If you add and use new components, follow the instructions in the screenshot to enable automatic generation. After automatic generation is complete, remember to set it back to false to avoid conflicts.

  • Blank page when accessing the project

Try upgrading your browser, as older browser engines may not support certain new JavaScript syntax, such as optional chaining operator ?..

  • Project synchronization with repository updates

After synchronizing the project with repository updates, it is recommended to run pnpm install to update dependencies before starting.

  • Red highlight on project components, functions, and imports

Restart VSCode to try again.

  • Other issues

If you have any other issues or suggestions, please open an ISSUE.

Commit Conventions

Execute pnpm run commit to invoke interactive git commit and complete the information input and selection according to the prompts.

Project Statistics

Thanks to all the contributors!

contributors

Special Thanks

Community

① Follow the "Youlai Tech" WeChat Official Account, click the Group Chat menu to get the QR code (this measure is taken to prevent ads from entering the group, thanks for your understanding and support).

② Directly add WeChat haoxianrui with a note indicating "Frontend/Backend/Full Stack".

Youlai Tech WeChat Official Account