Vue+express+mongodb Build Mobile Website

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.