A Vue.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
项目创建环境:
-
myvue node -v # v10.16.0 npm -v # 6.9.0 npm install -g vue-cli vue --version # 2.9.6
vue init webpack myvue cd myvue && npm start
npm install sass-loader --save-dev npm install node-sass --save-dev 或者 npm i vue-style-loader css-loader
npm i ajv或者 npm install ajv-keywords@3.4.1 npm install ajv@^6.0.0
npm install npm start
设置淘宝镜像 npm install cnpm -g --registry=https://registry.npm.taobao.org
-
backend 安装express npm install express -g npm install express-generator -g express --version express expressbackend
-
通过git创建本地创库,并推送至github git init git add . git commit -m "First commit" 在web上创建项目expressbackend git remote add origin https://github.com/soho-smarthome/expressbackend.git ( git remote rm origin) (vim .git/config 删除['','']) git remote -v git push origin master git pull origin master
git push origin master -f