更新 README.md
This commit is contained in:
parent
fcc2926209
commit
2de3df56bd
50
README.md
50
README.md
|
|
@ -1,5 +1,49 @@
|
||||||
# Vue 3 + Vite
|
DEMO
|
||||||
|
===========================
|
||||||
|
|
||||||
|
###########环境依赖
|
||||||
|
node.js
|
||||||
|
|
||||||
|
###########部署步骤
|
||||||
|
1. 添加系统环境变量
|
||||||
|
export $PORTAL_VERSION="production" // production, test, dev
|
||||||
|
|
||||||
|
|
||||||
|
2. npm install //安装node运行环境
|
||||||
|
|
||||||
|
3. npm run dev //前端编译
|
||||||
|
|
||||||
|
4. 启动两个配置(已forever为例)
|
||||||
|
eg: forever start app-service.js
|
||||||
|
forever start logger-service.js
|
||||||
|
|
||||||
|
|
||||||
|
###########目录结构描述
|
||||||
|
├── Readme.md // help
|
||||||
|
├── app // 应用
|
||||||
|
├── config // 配置
|
||||||
|
│ ├── default.json
|
||||||
|
│ ├── dev.json // 开发环境
|
||||||
|
│ ├── experiment.json // 实验
|
||||||
|
│ ├── index.js // 配置控制
|
||||||
|
│ ├── local.json // 本地
|
||||||
|
│ ├── production.json // 生产环境
|
||||||
|
│ └── test.json // 测试环境
|
||||||
|
├── data
|
||||||
|
├── doc // 文档
|
||||||
|
├── environment
|
||||||
|
├── gulpfile.js
|
||||||
|
├── locales
|
||||||
|
├── logger-service.js // 启动日志配置
|
||||||
|
├── node_modules
|
||||||
|
├── package.json
|
||||||
|
├── app-service.js // 启动应用配置
|
||||||
|
├── static // web静态资源加载
|
||||||
|
│ └── initjson
|
||||||
|
│ └── config.js // 提供给前端的配置
|
||||||
|
├── test
|
||||||
|
├── test-service.js
|
||||||
|
└── tools
|
||||||
|
|
||||||
|
|
||||||
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
||||||
|
|
||||||
Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://vuejs.org/guide/scaling-up/tooling.html#ide-support).
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user