Skip to content

🌐Source code local operation-front end

Running the MicroiI front-end project in a local environment


🎥Video tutorial


📦Download source code and development tools

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

  1. Open in VS Code/microi.web/Folder
  2. 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

  1. Install Docker Desktop (https://www.docker.com/products/docker-desktop/)
  2. Executionnpm run buildCommand Packaging
  3. Enterbin/Release/directory, executingpublish-demo.shScript (remember to modify the configuration inside first)

MIT License.