Do NOT Write Another Project Until You Watch This Video

Поділитися
Вставка
  • Опубліковано 4 лют 2025

КОМЕНТАРІ • 74

  • @anthonygg_
    @anthonygg_  Місяць тому +3

    ► 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

  • @massy-3961
    @massy-3961 Місяць тому +11

    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.

    • @bovfbovf
      @bovfbovf Місяць тому +1

      That's awesome, thank you for sharing

  • @twitchizle
    @twitchizle Місяць тому +46

    my man discovered web server in go

    • @VinayKumar-vu3en
      @VinayKumar-vu3en Місяць тому +1

      love his enthusiasm as he's discovering more things

    • @mattanderson616
      @mattanderson616 24 дні тому

      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

  • @iliasf2415
    @iliasf2415 Місяць тому +1

    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 UA-camr I've followed, and I admire you a lot. I hope to see you someday in Antwerp or somewhere else!

  • @erikslorenz
    @erikslorenz Місяць тому +1

    That's pretty awesome. I got so tired of having multiple repos for a frontend, backend, etc. I've been doing something similar lately.

  • @NguyenDuy-mj3wh
    @NguyenDuy-mj3wh Місяць тому +2

    Thats nice 🎉❤ I am looking for a simple way to ship my project faster. And here it is.

  • @krispekla
    @krispekla Місяць тому +1

    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.

    • @krispekla
      @krispekla Місяць тому

      Also Adonisjs seems hidden from mainstream but has real potential just as Pocketbase.

  • @hardikmaind9833
    @hardikmaind9833 Місяць тому +1

    this is soo cool..would be applying this next time i create a mini/personal project

  • @GerardvanVooren
    @GerardvanVooren Місяць тому +3

    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)

  • @Buiscit1738
    @Buiscit1738 Місяць тому +2

    I been preaching about pocketbase as a framework for the longest lol

  • @fadhlirahim
    @fadhlirahim Місяць тому +1

    nice distribution idea. FS embed is amazing!

  • @SepehrYahyaee
    @SepehrYahyaee Місяць тому +4

    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!

    • @itsghano
      @itsghano Місяць тому

      you can try tweaking "experimental.theme_overrides" setting which changes the Zed's current color scheme

  • @bilbobeutlin3405
    @bilbobeutlin3405 Місяць тому +5

    If you embed you database into the binary, isn't the data lost when you build and deploy a new version?

    • @vladmariangabriel6433
      @vladmariangabriel6433 Місяць тому +1

      Pocketbase is creating a folder for SQLite database pb_data

    • @massy-3961
      @massy-3961 Місяць тому

      @@vladmariangabriel6433okay but what about in production where the pb_data won’t always be there for executions

    • @arafet3198
      @arafet3198 Місяць тому +2

      Data is saved on disk

    • @LtdJorge
      @LtdJorge Місяць тому +2

      The database binaries are in the main binary, but the database files (the data) will be created in a subfolder at runtime.

  • @remcoe33
    @remcoe33 Місяць тому

    Do this all the time with svelte static adapter. Works great!

  • @dandogamer
    @dandogamer Місяць тому +3

    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?

    • @oscarhagman8247
      @oscarhagman8247 Місяць тому

      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

    • @dandogamer
      @dandogamer Місяць тому

      @@oscarhagman8247 Gotcha that makes sense ty

  • @fuadnafiz98
    @fuadnafiz98 Місяць тому

    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

  • @hardikmaind9833
    @hardikmaind9833 Місяць тому

    yo man i did it....thanks.I didn’t know that we could also embed static files into the go binary.

    • @hardikmaind9833
      @hardikmaind9833 Місяць тому

      i mean i used to do this in the djngo. but glad to know this also

  • @hassanad94
    @hassanad94 Місяць тому +1

    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.

    • @dandogamer
      @dandogamer Місяць тому

      Yes this is possible, using the `app.OnServe().Bind() function. You can register your entire handler :)

  • @boopfer387
    @boopfer387 Місяць тому

    awesome, I just started using sqlite in my app for this same reason - setting up a backend db etc..

  • @macawls
    @macawls Місяць тому

    Love pocketbase, its so productive. Can spin up anything.

  • @dima-l2m1k
    @dima-l2m1k Місяць тому

    Man, this is really powerful combo, and easy to Go stack)

  • @SeanSmithPit
    @SeanSmithPit Місяць тому

    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.

    • @dandogamer
      @dandogamer Місяць тому

      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

  • @havoq8257
    @havoq8257 Місяць тому +1

    What theme is your Code Editor in?

  • @realoctavian
    @realoctavian Місяць тому

    man I love balloons

  • @RishiMishra-to9by
    @RishiMishra-to9by Місяць тому +3

    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

    • @bopon4090
      @bopon4090 Місяць тому +3

      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.

    • @RishiMishra-to9by
      @RishiMishra-to9by Місяць тому

      @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

    • @adiy77
      @adiy77 Місяць тому +2

      ​@@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

    • @jaymason7097
      @jaymason7097 Місяць тому +6

      Because next js feels like an abstraction made by cats.

    • @RishiMishra-to9by
      @RishiMishra-to9by Місяць тому

      @@jaymason7097 😂👍

  • @surajbhardwaj2599
    @surajbhardwaj2599 Місяць тому

    which font are you using ?

  • @cokoala5137
    @cokoala5137 Місяць тому

    Can’t Bun also compile to a binary? Wouldn’t that simplify everything even further by eliminating npm, prettier, split codebases etc. ?

    • @dandogamer
      @dandogamer Місяць тому +1

      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

  • @morgengabe1
    @morgengabe1 Місяць тому

    Sorry, noobish question, but what was accomplished that you cannot do without pocketbase?

    • @dandogamer
      @dandogamer Місяць тому

      Pre-configured auth including MFA and one passcodes and realtime messaging support. Aim of the game is to get from 0-1

  • @adhdaddventure
    @adhdaddventure Місяць тому +2

    I want to do this but with Svelte. How should that work.

    • @emmanuelezeagwula7436
      @emmanuelezeagwula7436 Місяць тому

      the same way but with svelte on the frontend

    • @dandogamer
      @dandogamer Місяць тому

      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)

  • @fntr
    @fntr Місяць тому

    what editor do you use and do you have dotfiles?

  • @luccadibenedetto2986
    @luccadibenedetto2986 Місяць тому

    Whats up with the admin dashboard being accessible through the same url? No auth and Same port? What about security?

  • @dejanduh2645
    @dejanduh2645 Місяць тому

    Pocket base gives you some overhead, why don't just use the std only?

  • @Cdaprod
    @Cdaprod Місяць тому

    Is it just me or is there a PIP overlay?

    • @Cdaprod
      @Cdaprod Місяць тому

      It was just me 😅

  • @ac130kz
    @ac130kz Місяць тому +1

    you can also embed UI stuff with Rust :) Hopefully someone will add pocketbase support too

  • @Bazixxx
    @Bazixxx Місяць тому

    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.

  • @dev-mantas
    @dev-mantas Місяць тому

    Normalli handle the SPA router thing in nginx or traefik

  • @rogerramjet69
    @rogerramjet69 Місяць тому

    you would be far better off using solidjs then that remix bloat.

  • @selfcoder7258
    @selfcoder7258 Місяць тому

    The source code so we try it out 😊

  • @Sam-rb1id
    @Sam-rb1id Місяць тому

    Nice!

  • @mrcth6593
    @mrcth6593 Місяць тому

    1000%

  • @amit_go
    @amit_go Місяць тому +3

    From tweet to video 😂💯