🌐Source code local operation-front end
Running the MicroiI front-end project in a local environment
🎥Video tutorial
- To be re-recorded and uploaded
- Historical video tutorial: https://net.itdos.net:999/sharing/ZBN5cLPKa
📦Download source code and development tools
- Use Git to pull the latest code from an open source address:Gitee repository
- Download and install VS Code
- Download and install nvm:Windows version | MacBook version
shell
# 记住安装路径,一路往下安装即可
# 打开 nvm安装路径(我的是【D:\Users\Administrator\AppData\Local\nvm】),找到 settings.txt 文件,新增2行配置
node_mirror: https://npmmirror.com/mirrors/node/
npm_mirror: https://npmmirror.com/mirrors/npm/
# 打开cmd窗口,执行
nvm list available
nvm install 18
nvm install 14
# 常用命令
nvm ls
nvm use 18
node -v▶Running front-end source code
- Open in VS Code
/microi.web/Folder - View
/microi.web/README.md, execute the following command:
bash
nvm use 20
nrm use taobao
npm install
npm run dev🐳Local compilation and publishing to a Docker image
- Install Docker Desktop (https://www.docker.com/products/docker-desktop/)
- Execution
npm run buildCommand Packaging - Enter
bin/Release/directory, executingpublish-demo.shScript (remember to modify the configuration inside first)