Bring a clothing store in your room
# install dependencies
npm install
# build Vue components and pages for serving
npm run build
# run server
npm run startThe second step must be repeated each time a page or a component is modified because we need WebPack to be able to track all changes to those files.
components contains all the Vue.js components we want to reuse, e.g. Header, Footer, Clothing Item, etc.
pages contains one folder per page of our application. Each folder must contain at least:
- one HTML whose name must be the same of the page's folder
- one
App.vuefile which needs to provide the page's layout in a Vue style - one
main.jswhich is the page's entry point. It must include theApp.vuefile in order for WebPack to properly parse it Among the mentioned files, only the HTML ones are visible to the user (look atserver.jsfor more informations)
public contains all the public resources, e.g. images, style sheet files, etc.