Create a CRUD App with PocketBase and SvelteKit!

  Рет қаралды 10,192

Consulting Ninja

Consulting Ninja

Күн бұрын

This is part 2 in the PocketBase series. In this video I show how to perform all the basic data (CRUD) operations in PocketBase using SvelteKit. I show how to create a collection from the Dashboard. Then I show how to use the Dashboard API/Preview window to setup each data operation in a +page.server.js file! This was really fun! I hope that you find this helpful!
My channel membership is live check it out here!:
/ @consultingninja
Membership perk video:
• I launched a chatbot w...
Need help? visit www.consulting...
Check out my channel @ConsultingNinja for more videos like these.
Source Code Available Here:
github.com/con...
PocketBase Overview & Setup Video (Part 1) Here:
• PocketBase | what it i...
PocketBase Docs:
pocketbase.io/...
PocketBase JavaScript SDK:
github.com/poc...

Пікірлер: 46
@scott_itall8638
@scott_itall8638 Жыл бұрын
Can't wait to see more on Sveltekit and PocketBase, my Hogwarts points systems using Kit and Pocketbase's Real-time feature was a success. The parents loved watching the house points update live as their kids played.
@ConsultingNinja
@ConsultingNinja Жыл бұрын
Great there will be more coming soon after I wrap up a short detour on Google OAuth. Thank you for watching and I greatly appreciate your support!
@cholasimmons
@cholasimmons Жыл бұрын
Are you doing that from the server file to keep your env variables safe? An appwrite video would be cool too.
@ConsultingNinja
@ConsultingNinja Жыл бұрын
Yes, you wouldn't want to expose your URI, and credentials for your PB server on the client. Then someone would just delete all your data and replace it with expletives. Simply because they could. It is sad, but true. Thank you for watching!
@twd2
@twd2 Жыл бұрын
Yes,appwrite is awesome , with a stable version and now on cloud platform !!!
@annismonadjem6901
@annismonadjem6901 Жыл бұрын
Cool!
@ConsultingNinja
@ConsultingNinja Жыл бұрын
Thank you. I think it is pretty cool as well. I am working on a video using OAuth2 next.
@thecoffeejesus
@thecoffeejesus 6 ай бұрын
This is exactly what I needed. Thank you so very much
@ConsultingNinja
@ConsultingNinja 6 ай бұрын
Oh good, I am so glad it helped you!
@arjuns.3752
@arjuns.3752 Жыл бұрын
Life saviour frfr💯
@ConsultingNinja
@ConsultingNinja Жыл бұрын
Glad to hear that. Share this with anyone else that would find it helpful so we can help as many as possible!
@lav_alex
@lav_alex Жыл бұрын
Thank you for the video! this was useful 👍 Is this DB considered to be realtime? (like firebase) Thanks!
@ConsultingNinja
@ConsultingNinja Жыл бұрын
You can subscribe to realtime changes at both the collection and even record level yes.
@twd2
@twd2 Жыл бұрын
Cool!!!
@ConsultingNinja
@ConsultingNinja Жыл бұрын
Yo Ahmed! Hope you liked this one. Guess what is coming next? Going to do OAuth2 using Google! Coming VERY soon!!!
@twd2
@twd2 Жыл бұрын
Wow, 😍 I can't wait !!!
@ConsultingNinja
@ConsultingNinja Жыл бұрын
It will be out soon! It is VERY cool stuff!
@abedalrawas2656
@abedalrawas2656 8 ай бұрын
I really appreciate the video. thank you.
@ConsultingNinja
@ConsultingNinja 8 ай бұрын
You're very welcome!
@iTmaSteRjeDi
@iTmaSteRjeDi Жыл бұрын
Yo Ninja! Rookie here learning both PB and Svelte. Is it possible to do all this in a single page? Like having all the items in the collection displayed in a clickable table so you can touch to edit or delete each item? Thanks for your help!
@ConsultingNinja
@ConsultingNinja Жыл бұрын
Yes, it most certainly is. That sounds really fun! You are going to love doing that with SvelteKit and PB, let me know if you hit any snags and I can help!
@messiashenrique13
@messiashenrique13 Жыл бұрын
Awesome! 👏🏼👏🏼👏🏼👏🏼
@ConsultingNinja
@ConsultingNinja Жыл бұрын
Thank you! PB user auth and improving PB user security videos coming up early this next week. So stay tuned!
@meka4996
@meka4996 Жыл бұрын
Super! Thank you
@ConsultingNinja
@ConsultingNinja Жыл бұрын
You are VERY welcome! Thank you for watching!
@paulclarke4099
@paulclarke4099 Жыл бұрын
Thank you, great video. Why are you doing the connection to PocketBase and authentication in every file, wouldn't it be better to just do it once like when the app is initialzed?
@ConsultingNinja
@ConsultingNinja Жыл бұрын
Because I said I was writing each one as a stand alone data operation. But yes, you can even fire one up inside of a handle hook and pass it to your pages through locals. Just keep in mind that is only available if you run a load function for that page (the short explanation). I will show something of this nature when I do the auth portion.
@paulclarke4099
@paulclarke4099 Жыл бұрын
@@ConsultingNinja Got you, thanks 👍
@scott_itall8638
@scott_itall8638 Жыл бұрын
@@ConsultingNinja I tried the load function but couldn’t workout why it didn’t work, I had to put an instance on the client side.
@ConsultingNinja
@ConsultingNinja Жыл бұрын
Check the repository for clues as to what was missed. Otherwise send me the code (email) and I can take a look if you want :)
@scott_itall8638
@scott_itall8638 Жыл бұрын
Any relational type content coming? Im trying to use the expland paramter to get related fields but fails when you use it on the getFullList function.
@ConsultingNinja
@ConsultingNinja Жыл бұрын
I will add that to my list
@scott_itall8638
@scott_itall8638 Жыл бұрын
@@ConsultingNinja came down to the restrictions per record m
@ConsultingNinja
@ConsultingNinja Жыл бұрын
Glad you got it and aren't waiting on me. lol so many videos to tackle!
@thedelanyo
@thedelanyo Жыл бұрын
I presume PB is self-host, but do we have any hosting platform as of yet, in case one is not ready to spin up a server or docker sort of.
@ConsultingNinja
@ConsultingNinja Жыл бұрын
Yes, you can deploy PB to Fly.io and I will do a video on this soon! So stay tuned it is in the works right now. If you want to tackle that before I get to it here is the documentation: github.com/pocketbase/pocketbase/discussions/537 I will probably have that one out the week of the 4th or after. I have some more auth videos I want to do since that is a really important topic I am going to do at least one more showing how to implement Google sign in with React and Express. Thanks for watching!
@thedelanyo
@thedelanyo Жыл бұрын
@@ConsultingNinja great 👍🏿. Thanks
@greendsnow
@greendsnow Жыл бұрын
If only it had caching and rate limiting... I can't use it this way.
@ConsultingNinja
@ConsultingNinja Жыл бұрын
They are only at v0.153 (with 0.16 coming soon) I am sure they will add those before 1.0. I am considering writing a rate limiting middleware for use with SvelteKit, but haven't decided yet.
@ryanlog
@ryanlog 7 ай бұрын
timestamps please
@sergsergesrgergseg
@sergsergesrgergseg Жыл бұрын
great video although that intro nearly made me click off
@ConsultingNinja
@ConsultingNinja Жыл бұрын
What about the intro did you not like? Was it just the overall length? I have had requests to do an overview of what the video will be about so I have tried to add that to the intro. If you can give me specifics it will help the videos. Thank you!
@sergsergesrgergseg
@sergsergesrgergseg Жыл бұрын
@@ConsultingNinja terribly edited, terrible quality, cliche music which makes me think of 2010s minecraft tutorials
@ConsultingNinja
@ConsultingNinja Жыл бұрын
Thanks for the feedback
@WugglePuss
@WugglePuss Жыл бұрын
What's up with the create example? You typed in Admin and 50000 and show us Administrator with 6000 on refresh.
@ConsultingNinja
@ConsultingNinja Жыл бұрын
I live near a factory and trains and sometimes need to reshoot portions due to excessive noise, must have used one portion from each shoot. Sorry if it threw you off.
OAuth2 using Google, PocketBase, and SvelteKit
26:56
Consulting Ninja
Рет қаралды 7 М.
Protect SvelteKit Routes with Hooks
21:10
Huntabyte
Рет қаралды 56 М.
Шок. Никокадо Авокадо похудел на 110 кг
00:44
ПРИКОЛЫ НАД БРАТОМ #shorts
00:23
Паша Осадчий
Рет қаралды 4,7 МЛН
小丑和白天使的比试。#天使 #小丑 #超人不会飞
00:51
超人不会飞
Рет қаралды 40 МЛН
So Cute 🥰
00:17
dednahype
Рет қаралды 47 МЛН
SvelteKit Authentication with PocketBase
31:50
Huntabyte
Рет қаралды 32 М.
Getting Started With Pocketbase
23:03
Early Morning Dev
Рет қаралды 3 М.
The Modern Dev CMS - Pocketbase
25:25
Syntax
Рет қаралды 12 М.
NEW Tesla Prototype LEAKED at WB Studios | This Design Is Weird
20:34
Forms Will Never Be the Same
10:10
Huntabyte
Рет қаралды 55 М.
SvelteKit & PocketBase #1 - Authentication & User Management
44:17
SvelteKit 1.0 with SQLite Tutorial
53:22
hartenfellerdev
Рет қаралды 10 М.
Шок. Никокадо Авокадо похудел на 110 кг
00:44