安装 vscode 编辑器
一切都已经配置好,入手即用。
1、安装 npm install -g apicloud-cli
2、vue.config.js配置自己当前ip`host: "192.168.1.240"`
一般我们在H5开发Ui页面,之后再使用watch-build在apicloud环境下联调app环境
`npm run watch-build` apicloud环境
`npm run serve` H5环境
apicloud+vue 单页模式可三端同时开发: https://github.com/122177638/vue-apiCloud-model-mobile
vue (移动端) axios 拦截封装,px 转 rem,页面切换动画,vant 组件库,缓存配置: https://github.com/122177638/vue-model-mobile
vue (pc 端) axios 拦截封装,element 组件库,兼容 IE9,缓存配置: https://github.com/122177638/vue-model-pc
npm install
npm run serve
Compile and hot reload for development and push to APicloud-loader environment WIFI mobile phone synchronization
npm run watch-build
npm run build
npm run test
npm run lint
npm run test:unit