
This lecture will provide you with a list of resources for getting starting on your SvelteKit development journey.
This lecture demonstrates how to setup your development environment and create a new SvelteKit project. Once you're completed with this section you should have VSCode and NodeJS installed on your development machine.
In this lecture you'll get familiarized with the project files of a brand new SvelteKit project. This will prepare you to get started with development in the upcoming sections.
Create a reusable SvelteKit layout with header, footer, and a content slot. Style with scoped and global CSS and enable dynamic year with JavaScript.
Learn how to add SCSS to a SvelteKit blog project by installing sass, updating the package.json, and applying global styles, flex layouts, and margin resets for a responsive, edge-to-edge design.
Create and integrate header and footer components in a SvelteKit project, import them into the layout, and pass dynamic props like title to customize content.
Explore routing in SvelteKit by creating pages with a file-based structure, adding an about page and posts, using dynamic slug routes, and building a navigation menu that prefetches content.
Learn how to reset and create unique layouts in SvelteKit by structuring login routes, using slots, nested layouts, and global styles for flexible page designs.
Explore nested layouts in SvelteKit by wrapping slots in a content container and building a post page with an archives sidebar, styled with flex and hover effects.
Learn to access page parameters in SvelteKit with the context module load function, extracting the slug from page params and passing it as a prop.
Explore how SvelteKit handles error pages, including 404 not found responses, status and messages, and optional redirects to posts using slugs like /contact.
Link to MDSVEX Documentations Website.
Learn to power a SvelteKit blog by rendering markdown files with mdsvex, wiring a posts folder and dynamic routes to render markdown content on pages.
Explore markdown metadata to drive post titles and slugs, build reactive post content with a posts layout, and render archives for a SvelteKit blog.
Learn to dynamically fetch all post metadata using import.meta.glob, transform it into an array, and render posts with slug and title in a SvelteKit posts layout, replacing hardcoded archives.
Build a reusable posts component by creating a get posts meter utility in TypeScript, then fetch and render posts on the home page and archives using onMount and shared props.
This lecture demonstrates limiting posts displayed on the home page to three and the archives to five by adding a count prop to the posts component for latest posts.
Discover how to clean up post metadata in a SvelteKit blog by generating posts metadata from keys, adding a published flag with TypeScript interfaces, and refining slug routing.
Sort your blog posts by date in a SvelteKit blog by adding date metadata and handling missing dates. Use native JavaScript date comparisons for reliable ordering.
This should equip you with how to add transitions to an existing site!
Final useful notes regarding course content.
This is a course designed to take you from zero experience with SvelteKit to a level where you will be comfortable building basic applications using the new skills that you will learn in the course.
After you're done you should be able to build your own multi-page websites using SvelteKit.
Prerequisite Knowledge:
HTML
CSS
JavaScript
We assume you have a basic understanding and experience in working with the languages mentioned about.
You will learn best practices of SvelteKit as we build a blog website throughout the course.
Course Requirements:
Stable Internet Connection
Windows, Mac or Linux computer/laptop
If you want a quick taste for the Svelte language before picking up this course, we recommend checking out the tutorial on the official Svelte Website.
The course lecturer will be available within 24 hours to assist with any issues that may arise related to the course. If you get stuck anywhere, simple ask in the Q&A section.
Concepts Covered:
Building New SvelteKit Web Applications from Scratch.
Implementing Sites with Master Page Layouts.
Creating Multi-page websites with routing implemented.
Creating Fast Lightweight Web Applications.
Reading and Displaying Markdown files using MDSVEX in Web Applications.
Implementing Transitions for components and pages.
This course focusses purely on the Front End development aspect of SvelteKit. There will be server side concepts demonstrated in the course and how to deal with the intricacies that come up there. However the goal is to build fast lightweight static webpage with ease using the SvelteKit framework.