KEMBAR78
Getting started with Vue.js - CodeMash 2020 | PPTX
Up and Running Quickly With
Burton Smith
burton@breakstuff.io
@stuffbreaker
https://github.com/break-stuff/i-love-the-office
A Bit About Me…
A Bit More About Me…
Shameless Plug
https://projectclarion.com
How the world was…
Then in 2006…
Now…
So what are our options…?
VSVS
How do you choose?
Highly
Flexible
Highly
Opinionated
Other Players
Why Not Vue.js?
• Not as popular
• Other frameworks are backed by big companies
• Vue-specific code (directives, etc.)
• Lack of native/mobile app support
So why choose Vue.js?
It’s Crazy fast!
• Utilizes the virtual DOM
• Its Reactive
• Templating syntax
• It’s tiny! <20KB (v3 is <10KB)
• Vue v3 is even faster than Svelte!!!
Progressive Framework
An incrementally adoptable ecosystem that scales between a library
and a full-featured framework.
Key Framework Components
Vue
Core
Vue-
Router
Vuex
Component-Driven Architecture
• Clean markup
• UI Consistency
• Code reuse
Very Small Learning Curve
• Intuitive Framework
• Great Documentation
• An Amazing Community
Additional Frameworks
VuePress Gridsome
Mobile Frameworks
NativeScript
UI Frameworks
Vuetify
Bootstrap-Vue
Kendo UI
Semantic UI
Some References to Get You Started
• Vue.js Tutorials
• https://vuejs.org/
• https://vuejsdevelopers.com/
• https://alligator.io/vuejs/
• Scotch.io tutorials
• http://blog.rangle.io/tag/vue/
• Free video tutorials by Maximilian Schwarzmüller
If in need…
Search “AWESOME VUE”
https://github.com/vuejs/awesome-vue
My Goal…
My Actual Goal…
Get you up and running with Vue.js TODAY!
What we will not be covering…
• Vue.js v3 – Specifically Composition API
• Vuex (kind of)
Questions???
Let’s Get Started!!!
• Download https://github.com/break-stuff/i-love-the-office/
• Once you have it downloaded, open a command prompt at the root
of the project and run npm install to install the project dependencies
• To run the project run npm run serve
• https://codesandbox.io/s/github/break-stuff/i-love-the-office/
• (Not Currently Working)
Dev Tools (optional)
• For VS Code – Vetur
• Install the browser extension (for Chrome and Firefox)
Getting Started
• There are 2-and-a-half-ish ways to get started with Vue.js
Do a sweet demo…
Project Demo
https://break-stuff.github.io/i-love-the-office/
Challenge 1
• Pull in the quote data and render it on the page.
Loops
Binding
Challenge 2
• Toggle the isFavorite property on the quote object and change the
button style based on its value.
Conditional rendering
Events
Events: Part 2
Challenge 3
• Add drop-down to filter quotes by character. If no user is selected,
show all quotes.
Challenge 4
• Creating your first component
Component Architecture
Component Registration - Globally
Component Registration - Locally
Slots
Props
Challenge 5
• Move Quote-specific logic and markup to its own component
Advanced Props
Challenge 6
• Fix broken like functionality
Custom Events
Challenge 7
• Form input bindings
• Event Emitting
Challenge 8
• Add new Pages and Routing
Vue-Router
Dynamic Route Matching
Programmatically Change Routes
Route Guards
Vuex
• What is Vuex?
Page A
1 2 3
Page B
1 2 3
Page C
1 2 3
Vuex
Page A Page B Page C
Vuex
Data 1 Data 2 Data 3
How Does it Work?
Should You use Vuex?
Questions???
Thank You!!!
Go forth and code!

Getting started with Vue.js - CodeMash 2020