Coder Social home page Coder Social logo

kitanat / sveltekit-workshop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thisdot/sveltekit-workshop

0.0 0.0 0.0 4.31 MB

Repository including all the source code and information for This Dot's SvelteKit Workshop

JavaScript 0.74% TypeScript 86.51% CSS 1.19% HTML 0.21% Svelte 11.35%

sveltekit-workshop's Introduction

Delightful Web Development with SvelteKit

SvelteKit Workshop by This Dot Labs

Clone this repository to get started with the workshop.

Recommended IDE Setup

VS Code + Svelte Extension Pack.

Module Branches

There are different branches for each module and sub-module in the workshop. You can checkout the branch for the module you are working on by running the following command:

git checkout module-1

git checkout module-2.2

If you get stuck, you can checkout the branch with the appended -solution to the name. Solution branches are provided for each module and submodule.

Branches:
main
module-1
module-2.1
module-2.1-solution
module-2.2
module-2.2-solution
module-2.3
module-2.3-solution
module-2.4
module-3.1
module-3.2
module-3.3
module-3.4
module-3.4-solution
module-3.5
module-4.1
module-4.1-solution
module-4.2
module-4.2-solution
module-4.3
module-4.4
module-4.4-solution
module-4.5
module-4.5-solution
module-4.6
module-5.0
module-5.0-solution
module-6.1
api (for local use API server)

Workshop Outline

Module 1: Svelte and SvelteKit

Learn about the relationship between Svelte and SvelteKit, what SvelteKit brings to the table.

In this module we will cover:

  • Svelte and SvelteKit
  • Setting up a new SvelteKit application for development

Module 2: Routing

SvelteKit provides robust filesystem-based routing for your application.

In this module we’ll learn about:

  • SvelteKit’s directory driven filesystem-based router
  • Loading data for SvelteKit pages
  • SvelteKit’s Layouts and Error Pages

Module 3: Even more Routing

To be as flexible as possible, SvelteKit provides many routing features so you can create the URL structure you need

  • Rest params, optional params and breaking out of layouts
  • Routing Matchers
  • Route Priority

Module 4: Server Side Svelte

SvelteKit allows you to restrict and isolate code to only ever be run on the server, never exposing it to the client. With that understanding we will learn about:

  • Using Secrets and Environment Variables
  • Creating API endpoints
  • SvelteKit Hooks

Module 5: Forms

SvelteKit’s approach to forms and data mutation is simple: use the platform, then progressively enhance the experience. To facilitate that we will explore:

  • Handling for submissions with SvelteKit Actions
  • Enhancing forms with JavaScript on the client

Module 6: Deployment

SvelteKit offers many options for how to build your site for production all the way down to the page level. In this module we’ll discuss:

  • SvelteKits Page Options
  • Adapters

[Course Prerequisites]

  • Computer with internet access
  • A microphone and a webcam
  • An IDE of choice (we will be using Visual Studio Code)
  • Version 16+ or newer of Node installed on your computer
  • Basic understanding of HTML and CSS
  • Good understanding of JavaScript / TypeScript (all the examples will be in Typescript)
  • Previous Knowledge of Svelte - the component framework SvelteKit is built on top of - is recommended

sveltekit-workshop's People

Contributors

bigab avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.