How to use SvelteKit endpoints! (part 1)

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. 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).
šŸ¤Æ Support
  • https://www.patreon.com/davidwparker
  • https://www.buymeacoffee.com/davidwparker

ā±ļø 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

šŸ’Œ Newsletter:
  • https://www.programmingtil.com/

šŸŖElsewhere:
  • Twitter: https://twitter.com/davidwparker
  • Twitter: https://twitter.com/programmingtil
  • GitHub: https://github.com/davidwparker

šŸ’­Concepts:
  • SvelteKit endpoints

šŸ“šResources:
  • https://github.com/davidwparker/programmingtil-svelte/tree/ep21
  • https://kit.svelte.dev/docs#routing-endpoints
  • https://dev.to/danawoodman/getting-form-body-data-in-your-sveltekit-endpoints-4a85

šŸŽ¬ Subscribe!
  • http://bit.ly/subdavidwparker

My name is David W Parker and Iā€™m creating and publishing videos on ProgrammingTIL to help teach anyone and everyone who wants to code. Iā€™m a huge fan of Ruby on Rails, Svelte, TailwindCSS, and WebGL. Iā€™ve used React a lot in the past, as well as some Vue and AngularJS. Iā€™ve done some professional Python and Django. I like to create real applications and my tutorials will walk you through how to build something real from beginning-to-end.

svelte #sveltekit

Ā© programmingtil.com