Coder Social home page Coder Social logo

vuex-4-course's Introduction

Vuex 4 Course

$ vue create project-name

Push to Github

Migrate to Vue 3

$ vue add vue-next

Upgrade to latest npm packages

  • Need version lense VS extension
  • Go to package.json
  • Upgrade all packages
$ rm -rf node_modules

Project setup

$ npm cache clean -f
$ npm install

Compiles and hot-reloads for development

$ npm run serve

Compiles and minifies for production

$ npm run build

What to build in order

  • upgrade/migrate to Vue.js 3
  • npm i bootstrap 5 alpha
  • npm i bootstrap-icon
  • Navbar
  • Heroes (class card)
  • npm i vue-router 4
  • Router
  • npm i vuex 4
  • Setup Vuex 4 - hero module
  • Get Request (v-for)
  • Delete Request (class btn btn-danger)
  • Post Request (Form)
  • Put Request (editingTracker, v-if, v-else)
  • npm i jsonwebtoken
  • npm i -D @types/jsonwebtoken json-server-auth
  • Setup Vuex 4 - auth module
  • Register
  • Login
  • update auth service
  • authGuard
  • update router with meta requiresAuth and router BeforeEach
  • ForgotPassword
  • ContinueAs
  • Done! Now do the Villain part with its own page and Vuex module.

Vuex Setup

  • create store
  • write a module
  • write a state
  • npm i axios
  • write an api service
  • write a type
  • write an action
  • write a mutation
  • write a getter
  • update components with mapGetters and mapActions
  • npm i concurrently json-server
  • copy-paste db.json

vuex-4-course's People

Contributors

webmasterdevlin avatar

Watchers

 avatar

Forkers

aniweyn

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.