From the beginning of the step-by-step build mobile website, continuous update, GitHub code as follows, because put the video file, download may be a bit slow, remember to point the stars ~
HTTPS://github.com/lanleilin/myhomepage
The front-end uses VUE2+VUEX+VUE-CLI family barrel to build, the back end uses the nodejs+express, the database uses MongoDB. Use part of the Watercress API
After the download, install the module, NPM foreign sites slower, recommended the use of CNPM domestic mirror:
NPM install-g cnpm--registry=https://registry.npm.taobao.org
After running the CNPM Install command, the front-end is turned on:
NPM Run Dev
You can see the front page
Back-end Open:
Node App.js
MongoDB Database open:
Open the root directory command line,
--dbpath=d:\mongodb\homepagedb \ \ Here is replaced with the file directory set
Then open another command line
CD Binmongo
Can
Vue+express+mongodb Build Mobile Website