Learning notes: Vue + Node + Mongodb build a simple mall System (1), vuemongodb

Source: Internet
Author: User

Learning notes: Vue + Node + Mongodb build a simple mall System (1), vuemongodb

Prerequisites:

HTML, CSS, JS, Vue, ES6, Npm, Webpack, Node, Express, Mongodb

Overall project architecture:

 

IDE: webstorm;

Project creation process (common command line commands in cmd ):

Node installation download connection: https://nodejs.org/en/

Npm installation npm install-g npm

View node version: node-v

View npm version: npm-v

Install the vue module: npm install vue -- save

Install webpack: npm install webpack-g

Install vue-cli scaffolding: npm install-g vue-cli

Create a project: vue init webpack guoguoportal

Create a project: vue init <template-name> <project-name>

<Template-name> vue-cli provides five scaffolding options:

Webpack: directory structure based on webpack and vue-loader. It supports hot deployment, code check, testing, and CSS extraction;

Webpack-simple: directory structure based on webpack and vue-loader;

Browerify: Based on browerify and vueify (similar to vue-loader) structures, it supports hot deployment, code check, and unit testing;

Browerify-simple: Based on the browerify and vueify structures;

Simple: Enter the index.html page of vue.js.

<Project-name> name of your project

This example uses the webpack scaffold component project.

Big Pie brother

Related Article

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.