In this first part, we are going to create the project structure and learn more about routing and pages.
General app structure
Setting up the project
For setting up the project, the following steps need to be followed:
- First, generate a Vue project with the vue init webpack-simple <folder> command, like we did in Chapter 4, Advanced Project Setup:
vue init webpack-simple support-center
cd support-center
npm install
npm install --save babel-polyfill
- Install the packages necessary to compile Stylus code (our style will be written using Stylus):
- stylus
- stylus-loader
npm install --save-dev stylus stylus-loader
Don't forget to save the development tools packages in the development dependencies...