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)