Fetch data from Rails API with Next.js

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2024

Комментарии • 28

  • @tillcarlos664
    @tillcarlos664 3 месяца назад +1

    This is exactly what my team needed - one guy works on this and hasn't done it before. Just forwarded it.

  • @danimusbar
    @danimusbar 3 месяца назад

    Awesome...
    Suddenly appear in my home RUclips, keep up Sir

    • @kengreeff
      @kengreeff  3 месяца назад

      Thanks and welcome :)

  • @768hiddenneurons
    @768hiddenneurons 3 месяца назад

    Wow thank you! Was just looking for this kind of setup for my app! Wanna move my React & Rails project from a monolith to a monorepo like this one.

    • @kengreeff
      @kengreeff  3 месяца назад

      Love that it was useful. I’ve just released a follow up which shows how to add the crud endpoints as well :)

  • @mark-ball
    @mark-ball 3 месяца назад

    Thanks Ken, good to see some basic React Query stuff, and the auto-generated types from the rails schema was interesting too. Would love to see create, update, delete functionality the React Query way with useMutation.

    • @kengreeff
      @kengreeff  3 месяца назад

      Thanks mate! Had another request for the same so I think I’ll have to add it to the list

  • @KierynMoore
    @KierynMoore 3 месяца назад +2

    Thanks Ken. Videos are very helpful to follow along

    • @kengreeff
      @kengreeff  3 месяца назад

      Thanks mate! Hope you got something useful out of it :)

  • @DestinoDello
    @DestinoDello 3 месяца назад +1

    Wow i have been waiting for this thank you ken always

    • @kengreeff
      @kengreeff  3 месяца назад

      Hope you enjoyed it!

    • @kengreeff
      @kengreeff  3 месяца назад

      Let me know what you want to see next!

    • @DestinoDello
      @DestinoDello 3 месяца назад

      @@kengreeff rails graphql api, clean architecture and more production stuff logging monitoring... 🙏

  • @youyoumu
    @youyoumu 6 дней назад

    🎉

  • @sepehrkashani824
    @sepehrkashani824 3 месяца назад +1

    Love it 🔥🔥🔥🔥🔥

  • @nadetdevfullstack7041
    @nadetdevfullstack7041 3 месяца назад

    Excellent!

  • @tillcarlos
    @tillcarlos 3 месяца назад

    Question: how do you deploy these 2 repositories together? Any kind of versioning needed?

    • @kengreeff
      @kengreeff  3 месяца назад

      We ran separate repos in production and never had any real issues without versioning. I would probably setup the pipeline to deploy API first then the frontend after. Could also use feature flags. I think you can even have these issues when using next.js only - vercel tried to solve but not sure how well it works as I’ve never used that feature.

  • @redwansikder3847
    @redwansikder3847 3 месяца назад +1

    whats the difference between using app directory directly vs src/app directory?

    • @kengreeff
      @kengreeff  3 месяца назад

      To be honest, not sure. It’s been a convention to use the src directory for many years in js so probably just a preference thing. You can throw all your other directories into src as well, but either way probably works!

  • @danimusbar
    @danimusbar 3 месяца назад

    Btw, please make another tutorial using Phoenix Framework with Next JS

    • @kengreeff
      @kengreeff  3 месяца назад

      Unfortunately I have zero experience with Phoenix so can’t provide much value there. I do have a follow up to this video though :)

  • @pablovillar4424
    @pablovillar4424 3 месяца назад

    Can u make a simple crud with ror and nextjs for us? Button create, edit, delete and show more

    • @kengreeff
      @kengreeff  3 месяца назад

      Hey Pablo, thanks for the great suggestion. I'll see what I can do if you make sure you subscribe and hit the bell icon ;)

    • @pablovillar4424
      @pablovillar4424 3 месяца назад

      Done ;)