background icons
background icons 2
SvelteKit Tutorial

Codevolution

SvelteKit is a framework for building high-performance web apps using Svelte. Whereas Svelte is a component framework, SvelteKit is an app framework. And it is this line, which I want to break down further, to help you understand what exactly is SvelteKit. Now if you think about building applications with just Svelte, it's not quite possible to build a full feature rich application ready to be deployed for production. Svelte is a component framework for building user interfaces. It is responsible for only the view layer of an application and you as the developer have to make decisions on other features of the app. For example, how would you implement routing, server side rendering, authentication etc. Sveltekit on the other hand is an app framework. It is a package that uses Svelte for building user interfaces, but it also comes loaded with a lot more features that enables you to build full fledged production ready applications. Features exactly like routing, server side rendering, authentication, bundle optimization etc. There's no need to install additional packages. Sveltekit provides everthing for you. You do have to keep in mind though that SvelteKit, living true to the name of being a app framework, does have opinions and conventions which need to be followed to implement the above said features. However, we don't have to worry much about that as they are conventions that are easy to follow. So to re-iterate, SvelteKit is a framework for building high-performance web apps using Svelte. Alright now that we know what SvelteKit is, lets see why you might want to learn it. The why again stems from the fact that SvelteKit simplifies the process of building a web application for production. Let me list down some of the noteworthy features which you would probably want in a web application that SvelteKit provides out of the box. The first one is File based routing. When building a SvelteKit app, you don't need a third party routing package. SvelteKit provides what is known as file based routing to simplifiy this task. The second feature is prerendering. This means that Sveltekit generates HTML for each page in advance, instead of having it all done by client-side JavaScript. Pre-rendering can result in better performance and SEO which is something we all want. The third feature is API routes. And this might be a surprise to most of you. But let me tell you that you can create APIs with SvelteKit. So SvelteKit is really a fullstack framework if you think about it. You can write the UI code as well as APIs that can be called by the UI. SvelteKit also simplifie data fetching and sharing data through the component tree. We will learn how as we progress the series. SvelteKit provides a well optimized production build system so that you can focus more on the code and less on the configuration. There's a lot more to this list and it is a culmination of all these features which makes SvelteKit an amazing framework to work with.

SvelteKit Tutorial - 1 - Introduction

SvelteKit Tutorial - 1 - Introduction

Codevolution

SvelteKit Tutorial - 2 - Hello World

SvelteKit Tutorial - 2 - Hello World

Codevolution

SvelteKit Tutorial - 3 - Project Structure

SvelteKit Tutorial - 3 - Project Structure

Codevolution

SvelteKit Tutorial - 4 - Routing

SvelteKit Tutorial - 4 - Routing

Codevolution

SvelteKit Tutorial - 5 - Nested Routes

SvelteKit Tutorial - 5 - Nested Routes

Codevolution

SvelteKit Tutorial - 6 - Dynamic Routes

SvelteKit Tutorial - 6 - Dynamic Routes

Codevolution

SvelteKit Tutorial - 7 - Nested Dynamic Routes

SvelteKit Tutorial - 7 - Nested Dynamic Routes

Codevolution

SvelteKit Tutorial - 8 - Catch All Routes

SvelteKit Tutorial - 8 - Catch All Routes

Codevolution

SvelteKit Tutorial - 9 - Optional Parameters

SvelteKit Tutorial - 9 - Optional Parameters

Codevolution

SvelteKit Tutorial - 10 - Route Navigation

SvelteKit Tutorial - 10 - Route Navigation

Codevolution

SvelteKit Tutorial - 11 - Navigating Programmatically

SvelteKit Tutorial - 11 - Navigating Programmatically

Codevolution

SvelteKit Tutorial - 12 - Route Matchers

SvelteKit Tutorial - 12 - Route Matchers

Codevolution

SvelteKit Tutorial - 13 - Route Layout

SvelteKit Tutorial - 13 - Route Layout

Codevolution

SvelteKit Tutorial - 14 - Layout Groups

SvelteKit Tutorial - 14 - Layout Groups

Codevolution

SvelteKit Tutorial - 15 - Breaking Out of Layouts

SvelteKit Tutorial - 15 - Breaking Out of Layouts

Codevolution

SvelteKit Tutorial - 16 - Other Files

SvelteKit Tutorial - 16 - Other Files

Codevolution

SvelteKit Tutorial - 17 - API Routes

SvelteKit Tutorial - 17 - API Routes

Codevolution

SvelteKit Tutorial - 18 - API Get Request

SvelteKit Tutorial - 18 - API Get Request

Codevolution

SvelteKit Tutorial - 19 - API Post Request

SvelteKit Tutorial - 19 - API Post Request

Codevolution

SvelteKit Tutorial - 20 - Dynamic API Routes

SvelteKit Tutorial - 20 - Dynamic API Routes

Codevolution

SvelteKit Tutorial - 21 - API Patch Request

SvelteKit Tutorial - 21 - API Patch Request

Codevolution

SvelteKit Tutorial - 22 - API Delete Request

SvelteKit Tutorial - 22 - API Delete Request

Codevolution

SvelteKit Tutorial - 23 - Loading Data

SvelteKit Tutorial - 23 - Loading Data

Codevolution

SvelteKit Tutorial - 24 - Page Data

SvelteKit Tutorial - 24 - Page Data

Codevolution

SvelteKit Tutorial - 25 - fetch Function

SvelteKit Tutorial - 25 - fetch Function

Codevolution

SvelteKit Tutorial - 26 - Universal Load Function

SvelteKit Tutorial - 26 - Universal Load Function

Codevolution

SvelteKit Tutorial - 27 - Server Load Function

SvelteKit Tutorial - 27 - Server Load Function

Codevolution

SvelteKit Tutorial - 28 - Universal vs Server Load Function

SvelteKit Tutorial - 28 - Universal vs Server Load Function

Codevolution

SvelteKit Tutorial - 29 - Using URL data

SvelteKit Tutorial - 29 - Using URL data

Codevolution

SvelteKit Tutorial - 30 - Errors and Redirects

SvelteKit Tutorial - 30 - Errors and Redirects

Codevolution

SvelteKit Tutorial - 31 - Layout Data

SvelteKit Tutorial - 31 - Layout Data

Codevolution

SvelteKit Tutorial - 32 - Using Parent Data

SvelteKit Tutorial - 32 - Using Parent Data

Codevolution

SvelteKit Tutorial - 33 - Using Child Data

SvelteKit Tutorial - 33 - Using Child Data

Codevolution

SvelteKit Tutorial - 34 - Promise Unwrapping

SvelteKit Tutorial - 34 - Promise Unwrapping

Codevolution

SvelteKit Tutorial - 35 - Data Invalidation

SvelteKit Tutorial - 35 - Data Invalidation

Codevolution

SvelteKit Tutorial - 36 - Link Options

SvelteKit Tutorial - 36 - Link Options

Codevolution

SvelteKit Tutorial - 37 - Preload Data

SvelteKit Tutorial - 37 - Preload Data

Codevolution

SvelteKit Tutorial - 38 - Preload Code

SvelteKit Tutorial - 38 - Preload Code

Codevolution

SvelteKit Tutorial - 39 - Reload and No Scroll

SvelteKit Tutorial - 39 - Reload and No Scroll

Codevolution

SvelteKit Tutorial - 40 - Preload Programmatically

SvelteKit Tutorial - 40 - Preload Programmatically

Codevolution

SvelteKit Tutorial - 41 - Page Options

SvelteKit Tutorial - 41 - Page Options

Codevolution

SvelteKit Tutorial - 42 - SSR and CSR

SvelteKit Tutorial - 42 - SSR and CSR

Codevolution

SvelteKit Tutorial - 43 - Pre-rendering Pages

SvelteKit Tutorial - 43 - Pre-rendering Pages

Codevolution

SvelteKit Tutorial - 44 - Pre-rendering API Routes

SvelteKit Tutorial - 44 - Pre-rendering API Routes

Codevolution

SvelteKit Tutorial - 45 - Pre-rendering Dynamic Routes

SvelteKit Tutorial - 45 - Pre-rendering Dynamic Routes

Codevolution

SvelteKit Tutorial - 46 - Pre-rendering and SSR

SvelteKit Tutorial - 46 - Pre-rendering and SSR

Codevolution

SvelteKit Tutorial - 47 - Form Actions

SvelteKit Tutorial - 47 - Form Actions

Codevolution

SvelteKit Tutorial for Beginners - 48 - Default Form Actions

SvelteKit Tutorial for Beginners - 48 - Default Form Actions

Codevolution

SvelteKit Tutorial - 49 - Named Form Actions

SvelteKit Tutorial - 49 - Named Form Actions

Codevolution

SvelteKit Tutorial - 50 - Form Action Validation

SvelteKit Tutorial - 50 - Form Action Validation

Codevolution

SvelteKit Tutorial - 51 - Form Action Redirects

SvelteKit Tutorial - 51 - Form Action Redirects

Codevolution

SvelteKit Tutorial - 52 - Progressive Enhancement

SvelteKit Tutorial - 52 - Progressive Enhancement

Codevolution

SvelteKit Tutorial - 53 - Snapshots

SvelteKit Tutorial - 53 - Snapshots

Codevolution

SvelteKit Tutorial - 54 - Environment Variables

SvelteKit Tutorial - 54 - Environment Variables

Codevolution

SvelteKit Tutorial - 55 - Server-only Modules

SvelteKit Tutorial - 55 - Server-only Modules

Codevolution

SvelteKit Tutorial - 56 - Deploying SvelteKit Application

SvelteKit Tutorial - 56 - Deploying SvelteKit Application

Codevolution