# mp-package-sample-react **Repository Path**: meta-platform/mp-package-sample-react ## Basic Information - **Project Name**: mp-package-sample-react - **Description**: 开发包样例工程React版本 - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2022-08-31 - **Last Updated**: 2026-03-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mp-package-sample MetaPlatform 开发包工程模板. 前端内容基于 React + Webpack 构建. 后端内容通过VSCode中的MetaPlatform Editor插件进行管理. ## Recommended IDE Setup [VSCode](https://code.visualstudio.com/) + [MetaPlatform Editor](https://marketplace.visualstudio.com/items?itemName=MetaPlatform.mp-editor) ## Customize configuration 前端内容参考 [Webpack Configuration Reference](https://webpack.js.org/configuration/) 和 [craco Configuration Reference](https://github.com/gsoft-inc/craco/blob/master/packages/craco/README.md#configuration). 后端内容发布前, 需要参考server.config.sample.js的格式创建server.config.js文件, 并根据实际情况进行配置. ## Project Setup ```sh npm install ``` 国内建议使用npmmirror镜像进行安装, 可以提高安装速度. ```sh npm install --registry=https://registry.npmmirror.com ``` ### 本地调试前端内容 ```sh npm run start ``` ### 前端内容打包发布到服务器 ```sh npm run deploy_web ``` ### 后端内容打包发布到服务器 ```sh npm run deploy_package ``` ### 全部内容打包发布到服务器 ```sh npm run deploy_all ```