FE_CMD
—————* >>>>>>>> Vue
____________________________________________________________________________________________________________________________________________
$ npm install --global vue-cli //全局安装
$ vue init webpack
$ cd
$ npm install //安装依赖
$ npm run dev //启动
$ npm install vue-antd --save // ui使用antd http://okoala.github.io/vue-antd/#!/docs/download
$ npm install less less-loader -—save //使用less
$ npm install --save vue-markdown //使用markdown https://github.com/miaolz123/vue-markdown
$ npm install vue-awesome-swiper --save //使用swiper https://github.com/cynthiawupore/vue-awesome-swiper
$ npm install --save axios vue-axios //使用axios https://github.com/imcvampire/vue-axios
$ npm install vue-COOKIE --save //使用COOKIE https://www.npmjs.com/package/vue-COOKIE
$ npm install vue-localstorage --save //使用localstorage https://github.com/pinguinjkeke/vue-local-storage
$ npm install vue-meta --save //使用meta https://github.com/declandewet/vue-meta
$ npm install vuex --save //使用 https://vuex.vuejs.org/zh-cn/installation.html
$ //兼容ie8 https://ractive.js.org/
$ npm install --save vue-echarts-v3 //使用echarts https://github.com/xlsdg/vue-echarts-v3
$ npm install lodash —save //使用lodash
$ npm install --save js-md5 //http://blog.csdn.net/qq_35844177/article/details/70597597
$ 导出页面excel : https://www.cnblogs.com/Mrfan217/p/6944238.html* >>>>>>>> other
____________________________________________________________________________________________________________________________________________
$ npm install -g cnpm --registry=https://registry.npm.taobao.org //cnpm
$ npm install -g eslint //eslint
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" //homebrew* >>>>>>>> MongoDB
____________________________________________________________________________________________________________________________________________
(1-1)安装 homebrew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew -v
$ sudo brew update //升级
(1-2)安装 mongodb
$ sudo brew install mongodb(1-3)启动mongodb数据库
$ cd /usr/local/Cellar/mongodb/3.4.9/bin //mongodb的安装路径
$ ./mongod --dbpath /Users/zhongan/wuqianData/wx-hotToptic-server-data //数据地址
(1-4)http://localhost:27017
(2-1)操作数据
$ cd /Users/zhongan/wuqianData/wx-hotToptic-server-data //数据存放地址
$ mongo //开始操作
$ show dbs //数据库列表
$ use
$ show collections //表集合
$ db.createCollection(‘tableName’) //新建表
$ db.tableName.save({name:"wuqian",content:"this is first data"}) //表 插入数据
$ db.itableName.find() //查看表item中数据
$ db.tableName.remove({name:"wuqian"}) //删除表中 name=wuqian的数据
$ db.tableName.drop() //删除表item
$ db.dropDatabase() //删除数据库* >>>>>>>> Express
____________________________________________________________________________________________________________________________________________
$ express -e
$ cd
$ npm install
$ npm install mongoose --save //安装mongoose插件
$ DEBUG=app ./bin/www //启动 或者 node app
$ npm install body-parser --save //解析post请求* >>>>>>>> koa2
____________________________________________________________________________________________________________________________________________
$ npm install -g koa-generator //全局安装
$ koa2
$ cd
$ npm install //安装依赖
$ npm start //启动项目 $ DEBUG=wx-hotToptic-server npm start
$ localhost:3000 //预览* >>>>>>>> Node
____________________________________________________________________________________________________________________________________________
$ npm init
$ npm install express mongoose http body-parser --save