npm install -g vue-cli
npm install --save body-parser cors morgan
npm install mongodb
npm install nodemon
npm run start
npm run dev // auto update when you save
git add -u &
git commit -m "update: `date +'%Y-%m-%d %H:%M:%S'`"
git push origin master
cd server && cd public
git init
git add .
git commit -m 'deploy to gh'
git push -f https://github.com/shijiezhou1/vue-mongo-setup master:gh-pages
cd ~
brew install heroku/brew/heroku
heroku login
heroku create
Express does not allow two different cluster on expressjs. Same as github
git init
git add .
git commit -am "upgrate"
heroku git:remote -a vue-two
git status
git push heroku master
heroku open