Skip to content

DuanHejin/vue-vuex-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-vuex-example

主要研究了Vuex的下面几点内容

  • 概念
    • State
    • Getter
    • Mutation
    • Action
    • Module
  • 实战
    • 如何集成Vuex
    • 根据state, getters, mutations, actions创建store
    • 在组件中使用mapState
    • 在组件中使用mapGetter
    • 在组件中使用mapMutation
    • 在组件中使用mapAction

技术栈

  • Vue
  • Vue-Router
  • Vuex
  • Bootstrap
  • Sass
  • Promise
  • mongodb

安装mongodb

提前准备

  • 确保xcode-select已经安装。可以使用xcode-select -v查看;如果没有,使用xcode-select install安装
  • 确保homebrew已经安装。可以使用brew -v查看;如果没有,执行/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)";参考homebrew官网

使用homebrew安装mongodb(使用vpn,解决网络问题)

启动/关闭mongodb服务

查看mongodb服务是否已经启动

  • brew services list

参考:mongodb官网


Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published