All Projects → hoonyland → vue-2.x-boilerplate

hoonyland / vue-2.x-boilerplate

Licence: MIT license
A Vue.js 2.x Boilerplate with Vuex, vue-router AND Bulma

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
HTML
75241 projects

Projects that are alternatives of or similar to vue-2.x-boilerplate

Myblog
vue + node 实现的一个博客系统
Stars: ✭ 285 (+1040%)
Mutual labels:  vue-router, vue-resource
Vue Gok
vue2.0-王者荣耀助手
Stars: ✭ 27 (+8%)
Mutual labels:  vue-router, vue-resource
basic-transport-info-app
A progressive web app to show direct & indirect buses / transport between two places / cities / stops .Show next schedule & travel duration. Algorithm to calculate indirect buses on basis of their schedule time. Voice search . Locate nearest city/stop by gps. Bus timetable.
Stars: ✭ 12 (-52%)
Mutual labels:  vue-router, vue-resource
Vue-CAMP
VueJS
Stars: ✭ 16 (-36%)
Mutual labels:  vue-router, vue-resource
Vue Ruby China
使用Vue.js框架搭建的ruby china山寨版,集成vue-router+vuex等
Stars: ✭ 113 (+352%)
Mutual labels:  vue-router, vue-resource
Vue Dropload
vue下拉加载,简单路由,模态框组件等开发
Stars: ✭ 55 (+120%)
Mutual labels:  vue-router, vue-resource
Vue 163 Music
【停止维护】网易云音乐web版,支持PC端常用功能,localStorage保存播放列表
Stars: ✭ 788 (+3052%)
Mutual labels:  vue-router, vue-resource
Lvyou
🎒Vue.js 初步进阶案例,路由懒加载,进入页面前登录判断,返回导航判断,RestAPI接口使用,组件封装,Vuex状态封装,keep-alive页面缓存等功能
Stars: ✭ 195 (+680%)
Mutual labels:  vue-router, vue-resource
Social
基于Vue的社区论坛项目
Stars: ✭ 102 (+308%)
Mutual labels:  vue-router, vue-resource
Vue Boilerplate
Vue 2.0 boilerplate,based on webpack and es6,includes vuex,vue-router,vue-resource, vuelidate
Stars: ✭ 94 (+276%)
Mutual labels:  vue-router, vue-resource
Vue Sui Demo
用vue 和 SUI-Mobile 写了一个移动端demo,用来反馈学习vue的成果(禁用了SUI自带的路由,使用vue-router, vue-resource, webpack)[a web app written by vue & sui-mobile]
Stars: ✭ 1,747 (+6888%)
Mutual labels:  vue-router, vue-resource
Copilot
Responsive Bootstrap 3 Admin Template based on AdminLTE with vue.js
Stars: ✭ 2,698 (+10692%)
Mutual labels:  vue-router, vue-resource
Vue Video
vue + vue-router + vuex + (fetch->axios)
Stars: ✭ 251 (+904%)
Mutual labels:  vue-router
vue-cli4-webpack-template
基于vue-cli4+webpack 封装,便于下次新项目快速构建一个完备的模板项目(包含架手架引入、过滤器封装、ajax封装、路由引入封装、代理配置调试、less预编译配置引入、less主题切换、语言国际化、网页加载进度条)
Stars: ✭ 14 (-44%)
Mutual labels:  vue-router
Bga issue blog
Flutter 或 Vue 全家桶(Vue + VueRouter + Vuex + Axios)抓取 GitHub 上的 Issues,结合 GitHub Pages 搭建个人博客站点,支持 GitHub 登录和评论
Stars: ✭ 249 (+896%)
Mutual labels:  vue-router
Vue Cnode
🔥Vue.js打造一个开源的CNode社区。CNode by Vue.js
Stars: ✭ 249 (+896%)
Mutual labels:  vue-router
vue2.0-SellPosSystem
vue2.0实战项目——简单的快餐店系统
Stars: ✭ 35 (+40%)
Mutual labels:  vue-router
vue-js-laravel-multi-ssr
Source code for the article "Advanced Server-Side Rendering With Laravel & Vue: Multi-Page App"
Stars: ✭ 37 (+48%)
Mutual labels:  vue-router
Storybook Router
A storybook decorator that allows you to use routing-aware components in your stories
Stars: ✭ 246 (+884%)
Mutual labels:  vue-router
Vue Axios Github
Vue 全家桶 + axios 前端实现登录拦截、登出、拦截器等功能
Stars: ✭ 2,622 (+10388%)
Mutual labels:  vue-router

Vue 2.x Boilerplate

A Vue.js project with Vuex, vue-router AND Bulma

Build Setup

# install dependencies
yarn

# serve with hot reload at localhost:8080
yarn dev

# build for production with minification
yarn build

# build for production and view the bundle analyzer report
yarn build --report

Next Step

  • vue-resource

Development

Vuex

Vuex is a library to implement Flux Pattern on Vue.js. I'm sure that it is much easier than on React.js.

  1. Create a store to use Vuex

    Let's create a file to use Vuex on src/store/index.js.

  2. Notify your store to Vue

    Let's make your store activate on src/main.js.

  3. Setting up Store inside store/modules/*.js(modulized)

    If you open up a sample file named base.js in src/store/modules, there are four parts: state, mutations, actions, getters. state is the Store to store data on components you will build later. mutations is triggered from actions about how to manipulate your state by mutation-types. actions are triggered(dispatched) from your components (one of roles of actions is to get data from server). getters is what could be used on components froms state. You should declare varibales of state on getters to use on components.

  4. Declare your module to main store

    Let's include your module on src/store/index.js.

  5. Access data from Component

    If you open up a sample file named Store.vue in src/components, you can see friends in computed that return this.$store.getters.friends. You can get, manipulate, and use any data declared of getters in Store. Everything is done to use data from Store.

  6. Let's trigger actions!

    Once you declare store on your Vue project, you can access your store from any components on this. All you need to do to trigger actions is to dispatch the name of actions like this.$store.dispatch('getFriends'). And let getFriends to do its job.

Vue Router

I think it's much helpful to refer to official document than mine. Definitely.

Reference

License

MIT

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].