SvelteKit endpoints provide a way to do “backend” functionality within a SvelteKit application. It’s a great way to enhance your application so that you can start doing things with and without JS on, or provide a place to make external API requests.

📚Resources:

Subscribe: https://www.youtube.com/c/DavidParkerW/featured

1: How to use SvelteKit endpoints! Part 1

In this episode, I introduce a few endpoints for sign in, sign out, and creating blog posts. I briefly show how I’m using endpoints (but don’t read the documentation to you).

⏱️ Timestamps:

  • 00:00 - Introduction
  • 00:30 - Demo
  • 02:30 - stores, helpers, layout - cookie changes
  • 04:15 - hooks and api.js changes
  • 06:00 - Sign in changes and sign in endpoint
  • 12:40 - Blog Post submit changes and endpoint
  • 15:30 - Nav, and sign out endpoint

2: How to use SvelteKit endpoints! - JavaScript disabled (no JS)| Part 2

In this second part of exploring SvelteKit endpoints, I show how you can use endpoints with cookies and getContext and getState in order to have your application work with and without JavaScript on.

⏱️ Timestamps:

  • 00:00 - Introduction
  • 00:22 - Demo
  • 01:45 - stores and hooks and layout changes
  • 04:14 - Nav changes
  • 05:05 - sign in changes
  • 05:45 - index changes
  • 07:15 - post form and post card changes
  • 10:48 - sign in endpoint changes and cleanup
  • 12:20 - post new and post edit new files

3: How to use SvelteKit endpoints!(better endpoints!)| Part 3

In this final part (for now) of exploring SvelteKit endpoints, I create post updating and deleting endpoints, and add a few final touches like adding in success and error messages. I also cleanup the endpoints.

⏱️ Timestamps:

  • 00:00 - Introduction
  • 00:25 - Demo
  • 01:05 - Sign out endpoint and Nav changes
  • 03:25 - sign in endpoint, post create endpoint, and post form changes
  • 06:10 - post (update) and delete endpoints for Blog post (new!) and post card changes

#sveltekit #svelte

How to Use SvelteKit Endpoints!
28.90 GEEK