# vue-admin **Repository Path**: weshty/vue-admin ## Basic Information - **Project Name**: vue-admin - **Description**: vue-admin是一个后台项目脚手架,包含登录、权限、用户管理等功能 技术栈:vue3、element-plus、vue-i18n、axios、dayjs、screenfull. - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-10 - **Last Updated**: 2024-06-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-admin ## Project setup ``` yarn install / npm install ``` ### Compiles and hot-reloads for development ``` yarn serve / npm run serve ``` ### Compiles and minifies for production ### 打包正式版本 ``` yarn build | npm run build ``` ### Lints and fixes files ``` yarn lint ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ### 上线步骤 #### 1.执行 npm run build 打包正式版 #### 2.将dist文件复制到nginx的html目录下 #### 3.配置nginx server { listen 9999; server_name localhost; # 将文件复制到html目录下,访问http://localhost:9999 location / { root html/dist; index index.html index.htm; } # 前端调用后端nginx配置 location /prod-api/ { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://localhost:8081/; } } #### 4.访问http://localhost:9999