Giter Site home page Giter Site logo

vue-ssr's Introduction

vue-ssr

This instance built with Vue 2.0 + vue-router + vuex + element-ui + echart.js, with server-side rendering.

特点

Note: 这个项目是在尤大大给出的官方demo实例 HackerNews Demo 上进行改造的,克服尤大大给的 HackerNews Demo 需要翻墙才能运行起来的问题,新手在阅读SSR官方文档时,如果遇到疑惑点,可以直接在本文实例的基础上进行相关实验验证,从而解决疑惑,帮助国内ssr初学者更容易入门;并且本实例使用最受欢迎的vue ui库element-ui组件库和可视化echarts插件,演示如何在ssr中使用ui库以及进行数据可视化等。

SSR 结构示意图

screen shot 2016-08-11 at 6 06 57 pm

vue ssr 官方文档见连接 here.

构建步骤

需要 Node.js 7+ (作者使用的版本为:node.js 8.2.1 npm 5.3.0)

# install dependencies
npm install

# serve in dev mode, with hot reload at localhost:80
npm run dev

# build for production
npm run build

# serve in production mode
npm start

License

MIT

vue-ssr's People

Contributors

fengshi123 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.