Zero-Start Vue Project Combat (iii)-Project structure

Source: Internet
Author: User

Now enter http://localhost:8083 in the browser, you can see the original "Welcome to Your vue.js App" page

Directory Structure ├──README.MD Project Introduction ├──index.html portal page ├──build build script directory │├──build-server.js Run the local build server to access the built-in page │├──build.js production environment build script │├──dev-client.js Development Server Hot Reload script, mainly used to implement the development phase of the page automatically refreshed │├─  ─dev-server.js running the on-premises development Server │├──utils.js building the related tools method │├──webpack.base.conf.js wabpack Basic Configuration │├── Webpack.dev.conf.js wabpack Development Environment Configuration │└──webpack.prod.conf.js wabpack Production environment Configuration ├──config project configuration │├──           Dev.env.js Development environment variable │├──index.js project configuration file │├──prod.env.js production environment variable │└──test.env.js               Test environment variable ├──mock mock data directory │└──hello.js├──package.json NPM package configuration file, which defines the project NPM script, dependency package and other information ├──src   SOURCE Directory │├──main.js Portal JS file │├──app.vue root component │├──components Common components directory │             │└──title.vue│├──assets Resource Directory, where the resources will be wabpack built ││└──images││└──logo.png│├──routes Front-end Routing ││└──index.js│├──store Application-level data (state) ││└──index.js│└──views the page directory │├──homepage. Vue│└──notfound.vue├──static Pure static resources, will not be built by Wabpack. └──test test file directory (UNIT&E2E) └──unit Unit Test ├──index.js Portal Script ├──karma.co Nf.js Karma configuration File └──specs single case directory └──hello.spec.js

  

Temporarily create three files in the Views folder Homepage.vue and Notfound.vue, as the first page and 404 pages

To quickly build a project and learn key knowledge, introduce Mint-ui as the UI framework

NPM I Mint-ui-s

Write the following in Main.js:

Import vue from ' Vue ' import mintui from ' mint-ui ' import ' mint-ui/lib/style.css ' import apps from './app.vue ' Vue.use (mintui )

  

Add 3 new components to Header-bar,

Zero-Start Vue Project Combat (iii)-Project structure

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.