Nuxt.js project
# install dependencies
$ npm install # Or yarn install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm start
# generate static project
$ npm run generate
For detailed explanation on how things work, checkout the Nuxt.js docs.
- Install nuxt.js starter template
- Check architecture
- Create about.vue in pages
- https://jsonplaceholder.typicode.com
- Create posts/index.vue
- Change layouts/default.vue
npm install axios
- Create components/Post.vue
- Update pages/posts/index.vue
Optional:
npm install sass-loader node-sass --save
- Add scss in Post.vue
- Create app.scss in assets
- Create layout/_container.scss in assets
- Add css in nuxt.config.js
- Create pages/_id.vue
- Add vendor in build in nuxt.config.js
- Add nuxt-link in components/Post.vue
- Update head in nuxt.config.js
- add head in index.vue
- add head in _id.vue
- add bootstap in nuxt.config.js
- create layouts/posts.vue
- add layout in posts/index.vue
- add posts.length in pages/posts/index.vue
- install https://www.npmjs.com/package/pluralize
- add pluralize in pages/posts/index.vue
- remove pluralize from pages/posts/index.vue
- create plugins/mins/pluralize.js
- add plugin in nuxt.config.js
- create layouts/error.vue
- add try/catch in pages/posts/_id.vue
- install https://www.npmjs.com/package/vue-scrollto
- create plugins/scrooTo.js
- add plugin in nuxt.config.js
- Install https://github.com/sagalbot/vue-select
- create plugins/vueSelect.js
- add plugin in nuxt.config.js
- add selection in pages/posts/index.vue