- 35
- 24 658
Early Morning Dev
Australia
เข้าร่วมเมื่อ 1 ม.ค. 2024
This is my youtube channel where I talk about and discuss a variety of tech topics from my day to day development. If you are interested in connecting with me and working on cool projects check out the below link
newsletter.earlymorning.coffee/
newsletter.earlymorning.coffee/
Simple Google Logon With Pocketbase
Hey all,
A bit all over the shop with this weeks video but I hope it is helpful. I forgot to mention that the code for the Oauth function is provided directly in the user collection API definitions so have a look at your Pocketbase instance and then link that function to a button.
Setup Your Google Client ID:
developers.google.com/identity/oauth2/web/guides/get-google-api-clientid
Add Redirect Uri:
console.cloud.google.com/apis/credentials
Hope this helps with understanding what is happening under the hood. This change is live in fastpocket.dev which is my next.js + pocketbase template.
If this has been helpful and you want to get more useful tools, tuts and news in AI + JS please sub to my newsletter: newsletter.earlymorning.coffee/
Have a great week!
Cheers,
EMD
A bit all over the shop with this weeks video but I hope it is helpful. I forgot to mention that the code for the Oauth function is provided directly in the user collection API definitions so have a look at your Pocketbase instance and then link that function to a button.
Setup Your Google Client ID:
developers.google.com/identity/oauth2/web/guides/get-google-api-clientid
Add Redirect Uri:
console.cloud.google.com/apis/credentials
Hope this helps with understanding what is happening under the hood. This change is live in fastpocket.dev which is my next.js + pocketbase template.
If this has been helpful and you want to get more useful tools, tuts and news in AI + JS please sub to my newsletter: newsletter.earlymorning.coffee/
Have a great week!
Cheers,
EMD
มุมมอง: 111
วีดีโอ
Upgrading to Pocketbase 0 23 Simplified
มุมมอง 267วันที่ผ่านมา
Hey guys, I thought I would do a video showing how easy it is to migrate existing collections and data to the next version of Pocketbase. There is really only a few steps if you don't have custom migrations setup. Some thing to note that I got wrong in the video. I migrated twice. This is not required you only need to copy the data from the old version to the new version and then migrate. Hope ...
Speedy SaaS Payments With Pocketbase
มุมมอง 99314 วันที่ผ่านมา
Hey guys, This week I built an easy lemonsqueezy integration using managed portal links and checkout links. This is probably the easiest way to get started with payments on Pocketbase. If you haven't already I would recommend checking out my newsletter for more tools like this so that I can help you build faster - newsletter.earlymorning.coffee/ Tech used in the vid: Lemonsqueezy - www.lemonsqu...
Trying Tauri For The 3rd Time
มุมมอง 99421 วันที่ผ่านมา
Hey guys, I’ve been diving into Tauri, and I must say-it’s an incredible framework for building cross-platform apps. I first discovered it while working on a project for a client, and I’m now convinced it’s a strong contender against React Native. I’d love to hear your thoughts! If you found this video valuable, don’t forget to check out my weekly newsletter, where I share the top JavaScript an...
How To Self Host Like A Pro
มุมมอง 1.7Kหลายเดือนก่อน
Hey guys, This week I wanted to introduce the framework I have been using to self host my production apps. After some experience with Fly.io and some unfortunate cost blow outs. Whilst I love the ecosystem I wanted to see what I could do with a classic VPS. That's where Coolify came in. Hope you guys enjoyed the video. If you found this video valuable consider subscribing to my newsletter to ge...
What PocketBase 0.23 Means For Developers
มุมมอง 4.2Kหลายเดือนก่อน
Hey guys, This next PocketBase update is crazy a big shoutout to Gani who has spent a bunch of time making the update crazy good. A quick breakdown of everything. Also I messed up with my camera settings in OBS so thats why I am a little down :( 00:00 - 02:40 - Introduction (Me yapping) 02:40 - 12:53 - Pocketbase 0.23.0 Update Breakdown 12:53 - 28:00 - OTP with Astro If you are interested in Po...
How To PocketBase Like A Pro
มุมมอง 2.3K2 หลายเดือนก่อน
This is a video to break down the more complex aspects of building in Pocketbase. If you have built a crud app but are still confused a little bit on how things work or how far you can push things with PocketBase this video is for you. These are the things I wish I knew when I was first building in PocketBase. If you need any help building feel free to reach out to me on x at x.com/@meinbiz Als...
How To Setup Google AdMob In Expo in 2024
มุมมอง 1.3K2 หลายเดือนก่อน
Hey guys, Making this tutorial to showcase how to get your ads working in Expo. This was surprisingly difficult due to the XCode requirement for being up to date but that is nothing new. If you are wanting to get started with AdMob and monitizing your ads this is the way to do it as of August 2024. Please give me feedback and if you want to see what's going on in the world of a JS dev who loves...
How I Upgraded My Developer Workflow
มุมมอง 1822 หลายเดือนก่อน
Hey guys Thought I would share some things that have upgraded my workflow over the last 2 years with the advent of AI. If you are wanting to try the tools yourself checkout the below: Claude - console.anthropic.com/ Cursor - cursor.sh/ JS Programming and AI News - newsletter.earlymorning.coffee/
How To Host Pocketbase
มุมมอง 1.1K3 หลายเดือนก่อน
Hey guys, This is a quick guide I made to help my fellow PocketBase homies get up to speed with how to host PocketBase. Why would you host you might ask. It mainly comes to not having to deal with server maintenance tasks but of course you want the ability to not be locked in. PocketBase gives you freedom to host and not to host. If you have any questions here are some resources: Fly.io - fly.i...
Step-by-Step Guide to SSR with App Router in Next.js 14
มุมมอง 2993 หลายเดือนก่อน
Hey guys, This week I want to break down what I have learned in Next.js 14 - It hasn't been easy wrapping my head around the SSR CSR stuff. But I think I finally cracked it and I hope this will be a valuable resource for anyone who has struggled with understanding these same concepts. Basically SSR doesn't mean you have to have that every where if you want performance in your input components y...
How To Setup Custom Models With Ollama
มุมมอง 2654 หลายเดือนก่อน
How To Setup Custom Models With Ollama
3 Stupid Things People Have Said About AI
มุมมอง 4535 หลายเดือนก่อน
3 Stupid Things People Have Said About AI
I Chose The Best React State Management
มุมมอง 1735 หลายเดือนก่อน
I Chose The Best React State Management
Let's Build: An AI App From Scratch In JavaScript
มุมมอง 1786 หลายเดือนก่อน
Let's Build: An AI App From Scratch In JavaScript
Let's Build: Authenticated API's with PocketBase
มุมมอง 1.5K6 หลายเดือนก่อน
Let's Build: Authenticated API's with PocketBase
AI Realtime Sales Is Closer Than You Think
มุมมอง 657 หลายเดือนก่อน
AI Realtime Sales Is Closer Than You Think
I still feel limited with Pocketbase but it is super cool. Some limitations for me so far: TypeScript typegen should be built-in I think. `pb_schema.json` is there. There are good npm tools but get outdated fairly quickly. Casting is fine. I wish DB transactions were also there, but I guess I could just make hooks and interact with SQLite directly?
Looks like you filmed the intro twice? The beginning has a couple of intros, super useful video though, thanks!
Wooops good pickup - unfortunately not my best editing work aha - was stressed for time to get this out. Thanks for the comment
@@earlymorningdev No biggie, just thought I'd let you know, thanks for the useful content bro
Very clean tutorial, spent last 2 hours trying to figure out how to install it, overcomplicating things. Then I found this tuto and it was done in 10 mins. thanks
So glad it helped man!
I've never seen this wizard interface.
Which one? I'll link them in the description tomorrow
I had upgraded myself before this document came out. It’s not too bad. I only support sms login in my app and reimplemented OTP using sms since it’s only supported using mail.
Nice what service did you use?
For some reason setting up twilio in South Africa is a pain. I already have AWS running my pocketbase instance with Terraform, so it made sense to utilise SNS for text messaging. I looked into the OTPRequest function in the core pocketbase code and copied how it’s done and replaced the trigger portion that triggers a mail, to trigger an sms. In future it might be beneficial for pocketbase to have configuration for sms in the admin panel and then enable the notification type to be selected for that event which will either send an sms, mail or both
Useful to know. Never used sns before. I have used twilio was it much harder to navigate?
@ SNS took me 5 minutes to setup and add in the code. I just had to wait about a day for AWS to take me out of the sandbox. You should be able to get setup quickly and use the sandbox mode none the less.
I’ll create a new channel at some point specifically for dev in go. Pocketbase will be one of my main areas to focus on since the documentation is still not where it should be. I’ve read through the whole code base and have a good understanding of how it works. I’ve used go to build and app using a single binary (Frontend, pocketbase and db), the Frontend re-uses the mux router for all its endpoints and utilises hooks for core business logic and uses the core library to run db calls.
Can't read meeh, can't read maah, No he can't read my pocketbase, na ah, she's got to love nobody.
😂
Your LemonSqueezy video was great, I think a guide on setting up payment systems like Stripe or LemonSqueezy from scratch would be really helpful. There's also not much info out there about pb_hooks and other key functionality.
Coming soon!
Oh damn 0.23 is still not out. Can't wait for the OTP stuff, pretty cool
Yeah figured I would get the start on making it easy for people worried about how to actually do it
Does it work with astro?
You can do it. There are templates out there. Any web framework basically
Bro you casually showed your whatsapp screen at 8:20 XD XD
Rip ok thanks for that
Looks interesting. Do you know what the performance of Tauri is when compared to Capacitor or Native Android w/Kotlin? If it's anything like Tauri vs Electron then it's an obvious choice.
I am not 100% sure but I believe it is fast because the code is being executed through a bridge like RN (think old arch). The webviews will run your UI at the speed of any normal Web app which won't be as good as native but I believe it will be unnoticeable
We can also store the secret on env on the server so we dont have any keys on the code
You are correct. Only reason I left it in the code was because I was concerned that for people who had limited experience with hosting it may be a further complication
Why are you reading my mind?
What not paddle?
Would you like to see paddle?
@@earlymorningdev Yes sir, they say it's more saas friendly.
Hello, how can I set up Google Analytics using Firebase in Expo? Could you please make a video on this?
Absolutely also have you checked out posthog?
I want to set up Google Analytics for AdMob to track screen earnings
I am working on a blog app that features multiple bloggers, and I want to track their individual earnings by set the screen name to each blogger's username.
Great content, keep it up!
Thanks Alex!
Volume is a bit low but great vid. Love to see more pocketbase and SaaS integration vids :D
Yeah don't know what happened with it thanks for the feedback!
Bro I literally was just looking for a solution to this to add to my existing PB app, saw your Stripe repo but couldn't figure out how to integrate it into my instance. This video came out just in time, thanks a ton!
Ahaha glad it did! I will setup stripe like this as well later on. Let me know how you go with this and if you need any help
your audio is too low
sounds fine to me
Yeah I don't know what happened here. I didn't change my setup... very weird
Sounds good to me
high quality stuff man. thanks!
Thanks man. Love the encouragement!
i was exited about it but the problem it does not support SQL queries !! i don't know why people try to reinvent the wheel ! Thanks
It definitely does just not directly. I know why people do... as uncle Ben says "With Great Power Comes Great Responsibility " - most people can wreck themselves with SQL queries. Also with the new changes in Pocketbase you can hook-up whatever ORM you like to manage the database you could hook up Turso and manage it that way
Is llm farm safe?
Safe for what?
Oh, happy to see Tauri now supports Android and iOS. Last time I checked the development was in progress and now it is even on beta. Have only used it for building a Windows app but that's nice to know!
I am hoping it becomes a worthy competitor to React Native. Seems really promising
I tried out Coolify, but ended up setting up Dokploy instead for the cleaner UI. Thank you the Pocketbase videos! I'm running it now my app + NextJS.
Also very excited to see this version officially released soon ™ Nice walkthrough but I was wondering if there is a way to use OTP as a magic link, if that makes any sense. OTP works if the user is already in the DB but it would be cool if I could also send a link to an email that is not yet registered. Any ideas on how to accomplish this with pocketbase?
Hmm I think that sort of behaviour could be built out as a custom hook but my problem with that is I have a feeling that now we have this OTP feature I think that magic links may be coming in the future so there isn't a point for me to build it out
Congrats 🎉
Thanks man!
Thanks for sharing the Hooks setup! I didn't realize extending PB was so easy in Coolify.
Yeah I was very impressed with how easy it was to get setup to begin with. Easiest set-up for any backend I have self-hosted by far
Update FASTPOCKET docs dude they’re horribly unfinished but you’re taking folks money wtf
Great tutorial, but couldn't get mine to run. I followed it step by step and kept getting prebuild errors.
What version are you on. What was the error you were getting?
i love pocketbase so much, because of svelte admin. But go and sqlite not good enough for production. So i change to sveltekit + surrealdb + minio
Interesting what was your experience with it in prod?
@ i was used for ecomerce, the query of pocketbase to get data is not good, it’s hard in complecated query like join many table. The admin can not handle like an ecomerce admin, i have to write an admin to manage orders, products, coupon, user, …Pocketbase like a hobby project, you can’t use it in production to earn money
great video! i wonder if it means we can run RAG on the device at some point?
I definitely think that is already happening. I'm going to have to do a follow-up at some stage
what should I do when i: npx expo start and then this error apperas: Logs for your project will appear below. Press Ctrl+C to exit. iOS Bundled 25283ms C:\Users\lenni\palma24 ode_modules\expo-router\entry.js (1264 modules) ERROR Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNGoogleMobileAdsModule' could not be found. Verify that a module by this name is registered in the native binary.Bridgeless mode: false. TurboModule interop: false. Modules loaded: {"NativeModules":["PlatformConstants","LogBox","SourceCode","Timing","AppState","BlobModule","WebSocketModule","SettingsManager","DevSettings","Networking","RedBox","Appearance","DevLoadingView","DeviceInfo","UIManager","ImageLoader","LinkingManager","RNCSafeAreaContext","NativeAnimatedModule","I18nManager","RNCSafeAreaContext"],"TurboModules":[],"NotFound":["NativePerformanceCxx","NativePerformanceObserverCxx","BugReporting","HeadlessJsTaskSupport","SoundManager","IntentAndroid","NativeReactNativeFeatureFlagsCxx","RNSModule","RNGoogleMobileAdsModule"]}, js engine: hermes [Component Stack] WARN [Layout children]: No route named "(tabs)" exists in nested children: ["+not-found", "_sitemap", "(tabs)/explore", "(tabs)/index"] [Component Stack] ?
Always excited to see your video about pocketbase! keep them coming! Anyway, do you know how to scale pocketbase horizontally? I heard it's possible using LiteStream or LiteFS, haven't got the time to explore them further tho. Would be great if you can make a video about that!
Thanks for the encouragement 🙏 😊 yep definitely will be doing that. It is even more possible now that data base connects are here for 0.23
@hambaba it supports external db providers now so you should be able to hook it up to turso. However pocketbase under the hood uses hooks and from what I last read from the author these arent going to work properly when you start scaling horizontally. Maybe the refactoring in this release also fixed that but I will need to check the notes :)
Hey I knew i recognized your face, i just bought your Fastpocket starter! Will you be updating it with .23??? Sick starter bro, I'm moving our company site to it off Wordpress this weekend and couldn't be happier! :D
Yes sir that is in the pipeline. Sorry I didn't respond sooner my notifications are buggy. Also adding JS and lemonsqueezy
awesome dude thx, you wont regret Astro - freaky levels of productivity since switching.
A good example of Next.js too clever for its own good is "use server". I had to dig into that a few weeks ago and good god, there's way too much magic. Your issue with managing state between server and client is something I think only really became a major issue after the app router. It's too easy to create situations with stale state without it being evident why. I think tanstack's framework seems to address this, and there are some really cool ideas coming down the pipes. I'm excited to see what happens there.
Yeah I agree. App router is a good idea but the implementation is not well done. It's the opposite of simple which is the gold standard for programmers. I honestly have had a gutful from it but I still will use it cause it's popular. For my side projects I think I'm just moving to Astro
As far as tanstack that has been the only way to enjoy next.js but even that is silly. I'm going to check out tanstack start at some stage as there looks to be some awesome stuff happening there
Astro is the best right now! Keep going!
I'm so glad I picked it up. Going to keep going with it. Just need more time to execute on my thousand ideas 💡
Lol "Thats for weak ones", bookmarked
I think you should start thinking about code your self and use the ai to help you not to code for you
Well said sir, I definitely think about how to code myself. I understand the code that the ai is writing. I have written without ai for a long time. Ai helps to demonstrate really quickly how good pocketbase is
Pocketbase’s weakness was in not being able to scale horizontally. So you are saying now that I can scale my sqlite horizontally and do replicas with this ? Can you ellaborate on this in a longer video?
So having database connect now means that you can replicate the database. You can literally hook it up to turso and others. I will do a longer one and comment here again. It's such a huge update I literally have to break down so much
Bro love the video, I think I'm the one who recommended Astro you on Reddit! One of the main benefits of Astro to me is how Pocketbase can now manage your auth state basically.
Ahaha that's awesome I was hoping I'd bump into you again. Yeah I am glad I took the plunge. It is fricking awesome. Ok because that was another thing I was weirded out by OTP was that it just worked no cookie parsing no bs like in next.js. I loved it
Amazing, thanks for your video
What version of expo you are using ?
This is the latest version of expo
@@earlymorningdevThank you for your reply me.
what version of expo you are using ? because im testing all the available modules for admobs with expo sdk 51 but none is working. i even tried ejecting not working too can you please provide us with the errors you encountered and how to solve them.
This is the latest version
Excellent tutorial bro! It helped me a lot!
Great video. Thanks!
Thanks man ❤️
Great video i am falling in love with it.
Thanks Ravi
Great video man thanks
Thanks dude glad you liked it
PocketBase is the best :). Great tutorial, I don't think most people realize how powerful an engine PB can be once you start extending it. Looking forward to more of these!
Let me know how you go with it!
I have learned Go to extend it, it feels more powerful with go as hooks are not limited by the js sandbox runtime and learning Go will pay off in long run
Great video
Thanks so much <3
pockethost creator here…thanks for the mention! AMA
The man himself. Big love ❤️