Go to file
cshaptx4869 2ab594fd8e docs(vite.config.ts): 📝 增加一些注释 2024-03-11 08:46:26 +08:00
.husky build(husky): 📦 husky9.x版本适配 2024-03-06 11:14:49 +08:00
.vscode refactor(vscode): ♻️ 取消推荐TypeScript Vue Plugin 2024-03-04 09:16:22 +08:00
licenses docs: 📝 补充 license 文件 2023-07-11 07:13:21 +08:00
mock feat: 完善基础增删改查`Mock`接口 2024-03-05 18:32:37 +08:00
public feat: 添加网页ico图标 2022-11-08 23:51:25 +08:00
src refactor(env.d.ts): ♻️ 完善 Vite 环境变量类型声明 2024-03-10 10:42:57 +08:00
.editorconfig feat: 导航混合模式细节完善 2023-08-18 18:32:54 +08:00
.env.development build(vite.config.ts): 📦 通过env配置控制mock服务 2024-03-02 23:08:25 +08:00
.env.production refactor: ♻️ mock 解决方案方案替换为 `vite-plugin-mock-dev-server` 2024-01-10 23:03:25 +08:00
.eslintignore chore: 🔨 代码检测和格式化配置 2023-04-15 23:35:07 +08:00
.eslintrc-auto-import.json feat: 添加demo: 动态Table,拖拽Table,综合Table 2023-08-08 20:24:44 +08:00
.eslintrc.cjs refactor: ♻️ 项目重构(临时提交) 2023-11-16 22:46:28 +08:00
.gitignore refactor: 项目重构 2024-02-07 21:33:51 +08:00
.prettierignore chore: prettier & lint 2023-08-07 18:39:29 +08:00
.prettierrc.cjs fix: 🐛 Parsing error: Unexpected token prettier/prettier 问题修复 2023-09-11 18:19:27 +08:00
.stylelintignore chore: prettier & lint 2023-08-07 18:39:29 +08:00
.stylelintrc.cjs chore: 🔨 允许style标签为空 2024-02-20 08:22:46 +08:00
CHANGELOG.md docs: 📝 添加版本 2.9.2 更新说明 2024-03-05 23:51:10 +08:00
LICENSE docs: 📝 补充 license 文件 2023-07-11 07:13:21 +08:00
README.en-US.md docs: 📝 项目说明文档排版优化 2024-03-06 23:30:38 +08:00
README.md docs: 📝 项目说明文档排版优化 2024-03-06 23:30:38 +08:00
commitlint.config.cjs docs: 📝 完善 Git 提交规范说明 2024-03-10 10:58:36 +08:00
index.html refactor: ♻️ 优化和精简加载动画 2024-03-03 23:05:11 +08:00
package.json build(package.json): 📦 husky(v9.0.1) install command is deprecated 调整 2024-03-06 09:59:12 +08:00
tsconfig.json refactor: ♻️ 调整类型声明文件路径至 `src/typings` 和 `element-plus` 保持一致 2023-11-26 23:58:21 +08:00
uno.config.ts refactor: ♻️ unocss 自定义样式名修改 2024-02-22 18:20:19 +08:00
vite.config.ts docs(vite.config.ts): 📝 增加一些注释 2024-03-11 08:46:26 +08:00

README.en-US.md

中文| English

Introduction

vue3-element-admin is a free and open-source admin template for backend management frontend, built with popular technologies such as Vue3, Vite5, TypeScript, Element-Plus, and Pinia (with accompanying backend source code).

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 both local Mock data and remote API. Comes with Java backend source code and online API documentation.

  • Permission Management: Complete permission system for users, roles, menus, dictionaries, and departments.

  • Essential Infrastructure: Dynamic routing, button permissions, internationalization, code style, Git commit conventions, and common component encapsulation.

  • Continuous Updates: Continuously updated for 3 years since 2021, keeping up with the latest technologies and tools.

Project Preview

Light Mode

Dark Mode

API Documentation

Project Gitee Github GitCode
Frontend vue3-element-admin vue3-element-admin vue3-element-admin
Backend youlai-boot youlai-boot youlai-boot

Environment Setup

Environment Name and Version Download Link
Development Tool VSCode Download
Runtime Environment Node ≥18 Download

Project Setup

# Clone the repository
git clone https://gitee.com/youlaiorg/vue3-element-admin.git

# Change directory
cd vue3-element-admin

# Install pnpm
npm install pnpm -g

# Install dependencies
pnpm install

# Start the project
pnpm run dev

Project Deployment

# Build the project
pnpm run build:prod

# Upload files to the remote server
Copy the files generated in the `dist` directory to the `/usr/share/nginx/html` directory.

# nginx.cofig configuration
server {
	listen     80;
	server_name  localhost;
	location / {
			root /usr/share/nginx/html;
			index index.html index.htm;
	}
	# Reverse proxy configuration
	location /prod-api/ {
			proxy_pass http://vapi.youlai.tech/; # Replace vapi.youlai.tech with your backend API address
	}
}

Local Mock

The project supports both online API and local mock API. By default, it uses the online API. If you want to switch to the mock API, modify the value of VITE_MOCK_DEV_SERVER 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 set up a full-stack development environment.

  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 the local environment.
  3. Modify the value of VITE_APP_API_URL in the .env.development file to http://localhost:8989, replacing it with the backend API URL.

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 ?..

  • 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.

Project Documentation

Commit Conventions

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

Community 🚀

Follow "Youlai Tech" WeChat Official Account to get the QR code for the community.

If the QR code for the community has expired, please add my WeChat (haoxianrui) and indicate whether you are interested in "Frontend", "Backend", or "Full Stack" to get the latest QR code.

This measure is taken to ensure the quality of the community and prevent marketing advertising from infiltrating. Thank you for your understanding!

Official Account Community
Youlai Tech WeChat Official Account QR Code Community QR Code