Skip to content

shijiezhou1/vue-mongo-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue-Mongo-Setup

Project help you setup mongodb in vue 1 minute (MEVN)

npm install -g vue-cli
npm install --save body-parser cors morgan
npm install mongodb
npm install nodemon

To run the project

npm run start 
npm run dev // auto update when you save

To submit project to git

git add -u &
git commit -m "update: `date +'%Y-%m-%d %H:%M:%S'`"
git push origin master

GH deploy

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

Setup Express - USING HEROKU

cd ~
brew install heroku/brew/heroku

Create Heroku App Deployment

heroku login
heroku create

Heroku Push

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

View Deployment

heroku open

About

mongo setup for your vue project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •