"Vue.js" high imitation Hungry? Takeaway app (i)

Source: Internet
Author: User

1. Architecture migrating from traditional MVC to rest api+ front-end mv*

Reference Links:

http://blog.csdn.net/broadview2006/article/details/8615055

http://blog.csdn.net/u013628152/article/details/42709033

Mv* includes: MVC, MVP, MVVM

Vue.js is the MVVM framework

2.Iconmoon Make icon Font

2.1 Click Iconmoon App

2.2 Clicks Import icons, importing SVG pictures

2.3 Select the icon you imported and click on the lower right corner generate font

2.4 Click Get Code

2.5 Click Preference to name the font name

2.6 After export, get the following file, copy fonts file and Style.css

The data is stored in the 3.data.json (simulated database), and the data is read from that source by the simulated data request.

3.1 Open the Build directory, locate Dev-server.js (webpack packaged portal file), read the data from the Data.json (red part of the figure)

3.2 Writing a route (pink part of the figure)

3.3 Viewing data through interfaces

The introduction of 4.RESET.CSS, which customizes a part, removes the {} in Icon.styl and;

5. Settings for the viewport on the mobile side

6. Add a semicolon in the main.js;

Compile error, you can access the link of the prompt

Modifying the configuration of semicolons in Eslintrc.js

Empty the tabs in the App.vue (waiting to be rewritten), delete the Hello.vue file

"Vue.js" high imitation Hungry? Takeaway app (i)

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.