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
ā±ļø Timestamps:
š Newsletter:
šŖElsewhere:
šConcepts:
šResources:
š¬ Subscribe!
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.
š¤Æ 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