/NuxtLearn

vue 服务端渲染学习体验

Primary LanguageVue

nuxtstart

Nuxt.js project

Build Setup

# install dependencies
$ npm install # Or yarn install*[see note below]

# 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

*Note: Due to a bug in yarn's engine version detection code if you are using a prerelease version of Node (i.e. v7.6.0-rc.1) you will need to either:

  1. Use npm install
  2. Run yarn with a standard release of Node and then switch back

For detailed explanation on how things work, checkout the Nuxt.js docs.

我的分支目录即摘要

master

一个可以正常运行的 Nust 模板

SSR-start

  • 模板使用的起步

  • 项目结构说明

  • SSR 初体验示例

    • 路由 & 示例
    • 页面模板 & 示例
    • 异步数据 & 示例 & SSR 剖析

SSR-vuex

vuex 在 Nust 中的使用