All Projects → hql123 → Vue Ruby China

hql123 / Vue Ruby China

使用Vue.js框架搭建的ruby china山寨版,集成vue-router+vuex等

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Ruby China

Vue Boilerplate
Vue 2.0 boilerplate,based on webpack and es6,includes vuex,vue-router,vue-resource, vuelidate
Stars: ✭ 94 (-16.81%)
Mutual labels:  vuex, vue-router, vue-resource
Seemusic
Vue 云音乐播放器,网易云音乐API,可听网易云高品质付费歌曲。 Vue music player
Stars: ✭ 112 (-0.88%)
Mutual labels:  vuex, vue-router, vue2
Vuestic Admin
Free and Beautiful Vue 3 Admin Template
Stars: ✭ 8,398 (+7331.86%)
Mutual labels:  vuex, vue-router, vue2
Vuedemo sell eleme
ele by vue2.x 🐧
Stars: ✭ 1,349 (+1093.81%)
Mutual labels:  vuex, vue-router, vue2
Vue2 Shop
A shop developed with Vue2 + Vue-router + Axios + Vuex + Node + Express + MongoDB + Webpack
Stars: ✭ 103 (-8.85%)
Mutual labels:  vuex, vue-router, vue2
Vue Gok
vue2.0-王者荣耀助手
Stars: ✭ 27 (-76.11%)
Mutual labels:  vuex, vue-router, vue-resource
Vue Mobile Cli
🚀 Vue移动端多页应用脚手架
Stars: ✭ 112 (-0.88%)
Mutual labels:  vuex, vue-router, vue2
Mall Vue
基于Vue+Vuex+iView的电子商城网站
Stars: ✭ 929 (+722.12%)
Mutual labels:  vuex, vue-router, vue2
Vue Admin
基于Vue2、element ui、vue-cli、vuex、vue-router、axios 、echarts后台管理系统demo. 权限管理,用户管理,菜单管理。无限级菜单,下拉树形选择框
Stars: ✭ 1,135 (+904.42%)
Mutual labels:  vuex, vue-router, vue2
Vue Cnode
基于vue2 + vue-router + vuet + ES6 + less + flex.css重写vue版cnode社区,使用webpack2打包
Stars: ✭ 1,134 (+903.54%)
Mutual labels:  vuex, vue-router, vue2
Vms
A Vue.js 2.0 Content Management System
Stars: ✭ 885 (+683.19%)
Mutual labels:  vuex, vue-router, vue2
Vue2 Admin
基于vue-element-admin、Vue2 权限、监控、管理系统(包含地图等嵌套)
Stars: ✭ 74 (-34.51%)
Mutual labels:  vuex, vue-router, vue2
Vue Qq
🎨 Vue family bucket with socket.io and express/koa2 , create a web version of mobile QQ, supporting real-time group chat, real-time private chat, special care, shielding chat, smart IP geographic location, real-time display temperature and other QQ core functions
Stars: ✭ 861 (+661.95%)
Mutual labels:  vuex, vue-router, vue2
Vue Cli Multipage Bootstrap
vue-cli-multipage-bootstrap demo with vue2+vue-router+vuex+bootstrap+markdown for learning vue2.0
Stars: ✭ 105 (-7.08%)
Mutual labels:  vuex, vue-router, vue2
Vue Music
基于vue2.0的网易云音乐播放器,api来自于NeteaseCloudMusicApi,v2.0为最新版本
Stars: ✭ 855 (+656.64%)
Mutual labels:  vuex, vue-router, vue2
Vue axios spa
基于vue2+axios+vux+vue-router+vuex构建的单页微信端项目
Stars: ✭ 54 (-52.21%)
Mutual labels:  vuex, vue-router, vue2
Vue Chat
👥Vue全家桶+Socket.io+Express/Koa2打造一个智能聊天室。
Stars: ✭ 887 (+684.96%)
Mutual labels:  vuex, vue-router, vue2
Easy Vue
Learn vueJS Easily 👻
Stars: ✭ 896 (+692.92%)
Mutual labels:  vuex, vue2, vue-resource
Pretty Vendor
[零食商贩] - 基于vue全家桶 + koa2 + sequelize + mysql 搭建的移动商城应用
Stars: ✭ 57 (-49.56%)
Mutual labels:  vuex, vue-router, vue2
Vue Mall
微信公众号测试项目
Stars: ✭ 74 (-34.51%)
Mutual labels:  vuex, vue-router, vue2

Vue Ruby China

Ruby China 山寨版 (Vue框架)

Demo

https://hql123.github.io/

项目简介

这个项目还是以Ruby China为范本搭建的模仿平台,Vue.js框架+Bootstrap框架开发,集成vue-cli + vuex + vue-router + vue-resource,大概还会尝试加入服务端渲染的SSR。这个项目我个人觉得挺适合Vuex的初学者尝试的,功能简单逻辑也不复杂,对于actions、 getters、mutations、modules的单向数据流模式应该都使用得挺清晰的。

关于项目目录

当初写 React 的 Ruby China 山寨版的时候有人提出了 components 是UI组件,功能主要是可复用,纯粹的渲染组件,尽量不掺杂vuex或redux的使用到这里面,我深以为然!于是在这个项目里面可以看到 components 里面所有的组件都是单纯的渲染可复用组件,在 views 的组件里面定义好 vuex 的 state 通过 props 传过去使用,这是一个好习惯呀!

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

nginx配置

http {
  include       mime.types;
  default_type  application/octet-stream;
  server {
    listen       9000;
    server_name  ruby-china.local;
    root ../ruby-china/dist/; //项目根目录
    index index.html;
    location ^~ /static/ {
     gzip_static on;
     expires max;
     add_header Cache-Control public;
    }
    location / {
       try_files $uri $uri/ /index.html;
    }
    location /api/v3{
        proxy_pass https://ruby-china.org/api/v3;
        proxy_redirect off;
        proxy_buffering off;
    }
  }
}

##Vuex数据流

参考文献

Vue.js官方GitHub

Vue.js

Vuex

vue-router 2

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].