Svelte.js - The Complete Guide

Video description

Build high-performance web applications with SvelteJS - a lightweight JavaScript compiler

About This Video

  • Learn all about Svelte and run your app on a real server
  • Understand the theory and practical applications of Svelte

In Detail

If you want to build reactive user interfaces that load quickly and run fast, Svelte.js is a tool you shouldn't overlook! Svelte.js (or just "Svelte") is a modern JavaScript compiler that allows you to write and compile efficient and easy-to-understand JavaScript code that runs in the browser. In this course, you'll learn how to write a frontend application using JavaScript, following the rules laid out by Svelte. The Svelte compiler will then produce a small and highly optimized JavaScript bundle which can be easily deployed. This course covers all about Svelte, helping you understand how it works, what its core features are, and how to run your final app on a real server! Svelte.js is a great alternative to JavaScript frameworks and libraries such as React.js, Angular, or Vue for building highly reactive, modern user interfaces for the web. Moreover, it enables you to build your web projects with less code and helps build faster apps!

Table of contents

  1. Chapter 1 : Getting Started
    1. Introduction 00:02:29
    2. Why Svelte? 00:07:13
    3. What is Svelte? 00:04:30
    4. Setting Up a First App & The Course Project 00:11:09
    5. Writing Some Svelte Code 00:07:26
    6. Course Outline 00:04:48
    7. How To Get The Most Out Of The Course 00:02:38
  2. Chapter 2 : Base Syntax & Core Features
    1. Module Introduction 00:03:56
    2. Using Curly Braces & Understanding the Core Syntax 00:05:37
    3. Reactive Variables 00:05:48
    4. More Reactivity 00:02:10
    5. Binding to Element Properties 00:04:16
    6. Two-Way Binding Shortcut 00:01:41
    7. Using Multiple Components 00:08:30
    8. Components & Communication via Props 00:03:45
    9. Diving Deeper into Bindings 00:06:01
    10. Using Self-Extending Properties 00:01:10
    11. Outputting HTML Content 00:03:32
    12. Setting Dynamic CSS Classes 00:04:16
    13. Wrap Up 00:01:16
  3. Chapter 3 : Working with Conditionals & Loops
    1. Module Introduction 00:00:49
    2. Using "if" Statements in HTML 00:05:26
    3. if, else & else-if 00:04:27
    4. Outputting Lists with "each" 00:08:05
    5. "each", "else" & Extracting the Index 00:02:11
    6. Lists & Keys 00:09:55
    7. A Closer Look at List Keys 00:04:17
    8. Wrap Up 00:00:37
  4. Chapter 4 : A Closer Look at Reactivity
    1. Module Introduction 00:00:59
    2. Updating Arrays & Objects Immutably 00:02:29
    3. Understanding Event Modifiers 00:05:04
    4. Using Inline Functions 00:03:11
    5. Wrap Up 00:00:45
  5. Chapter 5 : Course Project - First Steps
    1. Module Introduction 00:01:19
    2. Project Setup & A First Component 00:08:42
    3. Different Ways of Mounting Components 00:05:08
    4. Adding Data 00:03:35
    5. Adding a New Component (MeetupItem) 00:04:18
    6. Working with Different Component Types 00:03:32
    7. Passing Data Into Components 00:05:37
    8. Adding a "MeetupGrid" Component 00:04:25
    9. Adding New Meetups via a Form 00:09:24
    10. Creating a "TextInput" Component 00:11:08
    11. Adding a Custom "Button" Component 00:05:58
    12. Wrap Up 00:02:21
  6. Chapter 6 : Diving Deeper into Components
    1. Module Introduction 00:01:44
    2. Understanding the Different Component Types 00:01:41
    3. Component Communication Overview 00:03:02
    4. Event Forwarding 00:04:53
    5. Emitting Custom Events 00:04:54
    6. How to Extract Event Data 00:02:28
    7. Using Spread Props & Default Props 00:06:56
    8. Working with Slots 00:06:26
    9. Named & Default Slots 00:03:31
    10. Example: Opening & Closing a Modal 00:03:18
    11. Using Slot Props 00:05:27
    12. The Component Lifecycle - Theory 00:04:54
    13. Creation & Update Lifecycle Hooks in Action 00:07:27
    14. Using "tick()" 00:09:19
    15. Wrap Up 00:00:56
  7. Chapter 7 : Course Project - Components Deep Dive
    1. Module Introduction 00:00:33
    2. Adding Default Props 00:03:22
    3. Communication via Custom Events 00:11:16
    4. Utilizing Slots 00:05:11
    5. Creating an "EditMeetup" Component 00:07:56
    6. Communicating Between Components 00:03:45
    7. Time for More Slots! 00:03:21
    8. Adding a Re-Usable "Modal" Component 00:07:05
    9. Finishing the "Modal" Component 00:03:29
    10. Wrap Up 00:00:38
  8. Chapter 8 : Working with Bindings & Forms
    1. Module Introduction 00:00:35
    2. Two-Way Binding Refresher 00:02:46
    3. Understanding Custom Component Bindings 00:06:06
    4. Relying on Automatic Number Conversion 00:02:56
    5. Binding Checkboxes & Radio Buttons 00:04:54
    6. Binding <select> Dropdowns 00:02:04
    7. Binding to Element References 00:05:17
    8. Binding to Component References 00:02:50
    9. Validating Forms & Inputs 00:06:43
    10. Wrap Up 00:00:58
  9. Chapter 9 : Course Project - Bindings & Forms
    1. Module Introduction 00:00:33
    2. Exploring Different Validation Solutions 00:02:32
    3. Adding Validation & Error Output to the "TextInput" Component 00:03:36
    4. Adding Some Validation Logic 00:03:25
    5. Finishing "TextInput" Validation 00:07:01
    6. Validating the Overall Form 00:02:51
    7. Improvements & Wrap Up 00:03:16
  10. Chapter 10 : Managing State & Data with Stores
    1. Module Introduction 00:01:04
    2. What's the Problem? 00:03:42
    3. Creating a Writable Store & Subscribing 00:05:34
    4. Updating Store Data 00:04:36
    5. Stores and Stateful & Presentational Components 00:01:56
    6. Managing Store Subscriptions 00:03:53
    7. Using Autosubscriptions 00:02:49
    8. A Second Store! 00:06:48
    9. Subscribing for a Short Period 00:03:48
    10. Understanding Readable Stores 00:08:45
    11. Unlimited Power with Custom Stores 00:07:56
    12. Wrap Up 00:01:22
  11. Chapter 11 : Course Project - Stores
    1. Module Introduction 00:01:13
    2. Setting Up a Store 00:03:00
    3. Using a Custom Store 00:08:10
    4. Tapping into the Store from Different Components 00:05:07
    5. Adding a "MeetupDetail" Component 00:12:34
    6. Preparing the "Edit Meetup" Form 00:05:10
    7. Continuing Work on the "Edit" Feature 00:09:13
    8. Adding a "Delete" Functionality 00:03:23
    9. Adding a "Filter" Component 00:08:49
    10. Some Final Steps 00:02:36
    11. Wrap Up 00:00:49
  12. Chapter 12 : Motion, Transitions & Animations
    1. Module Introduction 00:00:54
    2. Animating Values with a Tweened Store 00:06:54
    3. Using a Spring Store Instead 00:08:20
    4. Preparing a Transition Example 00:03:38
    5. Element Transitions 00:06:31
    6. More on Transitions 00:05:17
    7. Using Different "in" and "out" Transitions 00:01:30
    8. Animating Passive (Affected) Items 00:02:51
    9. Wrap Up 00:00:48
  13. Chapter 13 : Course Project - Transitions
    1. Module Introduction 00:01:03
    2. Animating the Modal 00:03:27
    3. Animating the Meetup Items 00:04:53
    4. Animating the "Favorite" Badge & Wrap Up 00:01:26
  14. Chapter 14 : Network Interaction via Http
    1. Module Introduction 00:01:33
    2. Adding a REST API 00:02:45
    3. Sending Data via a POST Request 00:06:59
    4. Showing a Loading Indicator & Sending Correct Data 00:03:17
    5. Fetching & Transforming Data 00:04:13
    6. Things to Consider 00:02:49
    7. Using the "await" Block 00:03:36
    8. Http + A Store 00:05:34
    9. Wrap Up 00:00:59
  15. Chapter 15 : Course Project - Http
    1. Module Introduction 00:00:35
    2. Storing Meetups on a Server 00:09:16
    3. Fetching & Transforming Data 00:04:54
    4. Adding a Loading Spinner 00:05:45
    5. Updating via PATCH 00:06:33
    6. Sending "Favorite" Updates & Deleting Data 00:03:57
    7. Fixing the Order of Items 00:01:10
    8. Adding Error Handling 00:07:14
    9. Wrap Up 00:00:48
  16. Chapter 16 : Special Elements
    1. Module Introduction 00:00:36
    2. Dynamic Components 00:07:22
    3. Recursive Components 00:06:10
    4. Accessing Windows, Body & Head 00:06:45
    5. Cross-Component Scripts 00:05:39
  17. Chapter 17 : Routing & Server-side Rendering with Sapper
    1. Module Introduction 00:00:47
    2. What and Why? 00:04:58
    3. Understanding the Folder Structure 00:02:54
    4. Inspecting the Web Page 00:02:20
    5. Filenames & Routes 00:06:46
    6. Error & Layout Pages 00:02:16
    7. Preloading in Components 00:05:12
    8. Pre-fetching Data 00:06:32
    9. Migrating the Meetup Project Files into the Sapper Project 00:06:45
    10. Fetching Data on the Client Side 00:09:14
    11. Prefetching Data on the Server 00:06:13
    12. Syncing Fetched Data & the Store 00:03:33
    13. Editing & Deleting Meetups 00:01:58
    14. Rendering the MeetupDetail Page 00:07:49
    15. Adding Global CSS 00:00:43
    16. Wrap Up 00:00:37
  18. Chapter 18 : Deployment
    1. Module Introduction 00:00:36
    2. Different App Types & Deployment Options 00:04:35
    3. Building the App 00:04:38
    4. Rendering Content Correctly on the Server 00:02:53
    5. Deploying a SSR App 00:03:20
    6. Hosting a Static Site 00:04:49
    7. Wrap Up 00:00:42
  19. Chapter 19 : Course Roundup
    1. Svelte vs React vs Angular vs Vue 00:08:56
    2. Course Summary 00:02:33

Product information

  • Title: Svelte.js - The Complete Guide
  • Author(s): Maximilian Schwarzmüller
  • Release date: July 2019
  • Publisher(s): Packt Publishing
  • ISBN: 9781838988937