► Join my Discord community for FREE education 👉 / discord ► Follow me on Twitter 👉 / anthdm ► Follow me on GitHub 👉 github.com/anthdm My stack is a single file. Peace and love
► Join my Discord community for FREE education 👉 discord.com/invite/Ac7CWREe58 ► Follow me on Twitter 👉 twitter.com/anthdm ► Follow me on GitHub 👉 github.com/anthdm Peace and love
Anthony something you need to try is ConnectRPC, especially if you’re gonna be mixing TS/Go together. It’s essentially a gRPC/Rest compatible RPC framework that unlike gRPC works in the browser out of the box. They have an implementation in Golang and it’s amazing.
I mean we're seeing the extension of PocketBase as a Go framework but PocketBase is basically Supabase with Auth/DB/Files/Admin, all contained in a single file you own rather than a paid service Pretty revolutionary imo
I really enjoy your videos a lot! They've taught me so much, and I'm very happy to learn from you. You're the first big Belgian TH-camr I've followed, and I admire you a lot. I hope to see you someday in Antwerp or somewhere else!
Awesome video! Time to ship instead of quirking with configuration is very important and videos like this are very needed. Instead of react/remix try using Vue. It is much more straightforward, has better docs and it is easier to follow lifecycle of components compared to React.
Beste Anthony. Mijn project is ook Go. De server pack ik in met Docker en voor de client (in dezelfde repo) gebruik ik Fyne (ook in Go). Dus ik heb uiteindelijk maar twee executables. (misschien een paar meer)
Would you please share your Zed configuration settings ?, I can't find the settings online about switching off the brackets or paranthesis highlighting when your cursor is on them!
What is Remix? Is it client side or one of those weird meta framework things that operates on the client/server. If thats the case are you running 2 different backends?
it is one of those "weird meta frameworks" but you can choose if the application should use SSR or be a SPA, he choose the SPA route so there are only static files for the go web server to serve
Simplicity is king :D I just wonder is it possible to add pocketbase without the route handling? What if i just want to extend my backend with pocketbase and im fine with my current route handlers.
Hello Anthony Great Video Wanted to know a bit about security concerns, as the database is also embeded how do you (or in the golang) makes sure that the database is not being compromised from the application level
Very cool video, thanks for sharing! Quick question, if the database is embedded in the executable, won't you lose all your data every time you deploy? I feel like I must be missing something there.
Your mixing up database and where the data is actually stored. The data is stored in a folder on your server. If the server has a volume mount then you won't lose that data when you deploy new changes
Yes i believe it can, although from memory there is a limitation on what can be compiled down to binary and also the binary sizes are mahoosive!! Talking 70mb just for a single hello world print statement
Basically serve all your compiled html/css/js inside a single directory. I.e. run `npm build` and then use go:embeded to serve from your build directory (probably /dist or /build). This can be done with any SPA framework (or even vanilla JS)
Hi Anthony, I had a small question. Why did you choose Remix instead of Nextjs in your new projects? Especially when Nextjs is sort of becoming an industry standard
it's probably because Next.js do not allow / it's hard to make single page application. Most of the people who use next.js uses with node for server side rendering but if you want to make single page application then it's kind of hard due to nextjs's page router. That's what i found when i tried to create SPA with next js.
@bopon4090 page router is like 2 years old now if I'm not mistaken, and nextjs 15 is pretty much a game changer with app router, react 19 integration and a lot of other cool stuff
@@bopon4090in other words, implementing Client side rendering using next js is pain, right?.. just wanted to confirm, ima backend developer having just higher level knowledge of FE.. thanks
I did go for some time...coming from java/Kotlin... But go is so fucking ugly and noisy, that when I returned, I learned what I value at Kotlin... So much nicer and easier to wrote and read code.
► Join my Discord community for FREE education 👉 discord.com/invite/Ac7CWREe58
► Follow me on Twitter 👉 twitter.com/anthdm
► Follow me on GitHub 👉 github.com/anthdm
Peace and love
Anthony something you need to try is ConnectRPC, especially if you’re gonna be mixing TS/Go together. It’s essentially a gRPC/Rest compatible RPC framework that unlike gRPC works in the browser out of the box. They have an implementation in Golang and it’s amazing.
That's awesome, thank you for sharing
my man discovered web server in go
love his enthusiasm as he's discovering more things
I mean we're seeing the extension of PocketBase as a Go framework but PocketBase is basically Supabase with Auth/DB/Files/Admin, all contained in a single file you own rather than a paid service
Pretty revolutionary imo
I really enjoy your videos a lot! They've taught me so much, and I'm very happy to learn from you. You're the first big Belgian TH-camr I've followed, and I admire you a lot. I hope to see you someday in Antwerp or somewhere else!
Thats nice 🎉❤ I am looking for a simple way to ship my project faster. And here it is.
That's pretty awesome. I got so tired of having multiple repos for a frontend, backend, etc. I've been doing something similar lately.
this is soo cool..would be applying this next time i create a mini/personal project
Awesome video! Time to ship instead of quirking with configuration is very important and videos like this are very needed.
Instead of react/remix try using Vue. It is much more straightforward, has better docs and it is easier to follow lifecycle of components compared to React.
Also Adonisjs seems hidden from mainstream but has real potential just as Pocketbase.
nice distribution idea. FS embed is amazing!
I been preaching about pocketbase as a framework for the longest lol
Beste Anthony. Mijn project is ook Go. De server pack ik in met Docker en voor de client (in dezelfde repo) gebruik ik Fyne (ook in Go). Dus ik heb uiteindelijk maar twee executables. (misschien een paar meer)
If you embed you database into the binary, isn't the data lost when you build and deploy a new version?
Pocketbase is creating a folder for SQLite database pb_data
@@vladmariangabriel6433okay but what about in production where the pb_data won’t always be there for executions
Data is saved on disk
The database binaries are in the main binary, but the database files (the data) will be created in a subfolder at runtime.
Would you please share your Zed configuration settings ?, I can't find the settings online about switching off the brackets or paranthesis highlighting when your cursor is on them!
you can try tweaking "experimental.theme_overrides" setting which changes the Zed's current color scheme
What is Remix? Is it client side or one of those weird meta framework things that operates on the client/server. If thats the case are you running 2 different backends?
it is one of those "weird meta frameworks" but you can choose if the application should use SSR or be a SPA, he choose the SPA route so there are only static files for the go web server to serve
@@oscarhagman8247 Gotcha that makes sense ty
Simplicity is king :D
I just wonder is it possible to add pocketbase without the route handling? What if i just want to extend my backend with pocketbase and im fine with my current route handlers.
Yes this is possible, using the `app.OnServe().Bind() function. You can register your entire handler :)
Do this all the time with svelte static adapter. Works great!
Hello Anthony Great Video Wanted to know a bit about security concerns, as the database is also embeded how do you (or in the golang) makes sure that the database is not being compromised from the application level
Very cool video, thanks for sharing! Quick question, if the database is embedded in the executable, won't you lose all your data every time you deploy? I feel like I must be missing something there.
Your mixing up database and where the data is actually stored. The data is stored in a folder on your server. If the server has a volume mount then you won't lose that data when you deploy new changes
yo man i did it....thanks.I didn’t know that we could also embed static files into the go binary.
i mean i used to do this in the djngo. but glad to know this also
Man, this is really powerful combo, and easy to Go stack)
Can’t Bun also compile to a binary? Wouldn’t that simplify everything even further by eliminating npm, prettier, split codebases etc. ?
Yes i believe it can, although from memory there is a limitation on what can be compiled down to binary and also the binary sizes are mahoosive!! Talking 70mb just for a single hello world print statement
what editor do you use and do you have dotfiles?
he is using zed
Love pocketbase, its so productive. Can spin up anything.
awesome, I just started using sqlite in my app for this same reason - setting up a backend db etc..
I want to do this but with Svelte. How should that work.
the same way but with svelte on the frontend
Basically serve all your compiled html/css/js inside a single directory. I.e. run `npm build` and then use go:embeded to serve from your build directory (probably /dist or /build). This can be done with any SPA framework (or even vanilla JS)
Hi Anthony, I had a small question. Why did you choose Remix instead of Nextjs in your new projects? Especially when Nextjs is sort of becoming an industry standard
it's probably because Next.js do not allow / it's hard to make single page application. Most of the people who use next.js uses with node for server side rendering but if you want to make single page application then it's kind of hard due to nextjs's page router. That's what i found when i tried to create SPA with next js.
@bopon4090 page router is like 2 years old now if I'm not mistaken, and nextjs 15 is pretty much a game changer with app router, react 19 integration and a lot of other cool stuff
@@bopon4090in other words, implementing Client side rendering using next js is pain, right?.. just wanted to confirm, ima backend developer having just higher level knowledge of FE.. thanks
Because next js feels like an abstraction made by cats.
@@jaymason7097 😂👍
What theme is your Code Editor in?
Yeah, look nice
Sorry, noobish question, but what was accomplished that you cannot do without pocketbase?
Pre-configured auth including MFA and one passcodes and realtime messaging support. Aim of the game is to get from 0-1
Whats up with the admin dashboard being accessible through the same url? No auth and Same port? What about security?
which font are you using ?
Pocket base gives you some overhead, why don't just use the std only?
Is it just me or is there a PIP overlay?
It was just me 😅
man I love balloons
I did go for some time...coming from java/Kotlin...
But go is so fucking ugly and noisy, that when I returned, I learned what I value at Kotlin... So much nicer and easier to wrote and read code.
Nice!
you would be far better off using solidjs then that remix bloat.
Normalli handle the SPA router thing in nginx or traefik
you can also embed UI stuff with Rust :) Hopefully someone will add pocketbase support too
The source code so we try it out 😊
1000%
From tweet to video 😂💯