Vuejs: Difference between revisions

From Training Material
Jump to navigation Jump to search
Line 97: Line 97:


== Scaling your application ==
== Scaling your application ==
* Lighter-weight
* Lighter-weight way ('''no-build-step''' usage)
** <small>https://github.com/vuejs/petite-vue</small>
** <small>https://github.com/vuejs/petite-vue</small>
* '''TS''' - '''vue-tsc''' instead of just '''tsc'''
* '''Testing''' - '''Vitest''' rather then '''Jest'''; Cypress is preferred
* More here
* More here
** <small>https://vuejs.org/guide/scaling-up/tooling</small>
** <small>https://vuejs.org/guide/scaling-up/tooling</small>

Revision as of 14:56, 6 May 2024


Vuejs

Vuejs Training Materials

Introduction

  • JavaScript framework for building UI (user interfaces)
  • What do we need?
    • HTML, CSS, and JavaScript
  • Declarative, component-based programming model
    • Declarative rendering
    • Reactivity
  • Progressive framework
  • Single-file components
  • API Styles - options VS composition

Not That

NotVue.png

Framework

Progressive Framework - "framework that can grow with you and adapt to your needs"

  • framework and ecosystem
  • designed to be flexible and incrementally adoptable
  • can be used in
    • enhancing static HTML without a build step
    • embedding as Web Components on any page
    • Single-Page Application (SPA)
    • Fullstack / Server-Side Rendering (SSR)
    • Jamstack / Static Site Generation (SSG)
    • targeting desktop, mobile, WebGL, and even the terminal

Overview of Vue JS

  • Declarative rendering
  • Component composition
  • Hot-reloading
  • Time-travel debugging

Declarative rendering

Component composition

Hot-reloading

Time-travel debugging

Setting up a development environment

  • Nodejs
  • IDE - VSC + official ext
  • git
  • ??

Creating your first application

Working with Templates

Dividing the application into smaller, self-contained components

Methods and computed properties

Reactive programming

Directives and data rendering

Applying transitions

Routing

Managing state

Creating animations

Refactoring components

Server-side rendering

Supporting libraries and packages

  • Routing
  • State management
  • Build tooling

Routing

State management

Build tooling

Testing your application

Debugging and performance

Embedding Vue.js into existing pages

Deploying your application to production Vue-CLI

Scaling your application

Helpers