Setup A Ruby on Rails 7 API With React JS

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2024

ความคิดเห็น • 85

  • @junmarkchi8538
    @junmarkchi8538 2 ปีที่แล้ว +23

    I think we need more of this React Rails content

  • @weslleylucassilvadossantos3783
    @weslleylucassilvadossantos3783 4 หลายเดือนก่อน

    Nicely done, Deanin! Thank you!

  • @randerins
    @randerins 2 ปีที่แล้ว +6

    "Posted 1 day ago"
    I swear this couldn't come up anymore handy. It's 4:54 AM here and I'm struggling to set these 2 frameworks together for a project. Thanks a LOT! One more sub

    • @Deanin
      @Deanin  2 ปีที่แล้ว +1

      Hahaha, that's some pretty convenient timing, glad it helped!

  • @salimmalik302
    @salimmalik302 ปีที่แล้ว +1

    This is such an amazing tutorial! Has to be one of the best tutorial videos i have came across. Thanks for doing this

  • @Mixesha001
    @Mixesha001 2 ปีที่แล้ว +19

    In Depth Rails 7 API auth, json caching, User roles, pagination etc is something needed.

    • @Deanin
      @Deanin  2 ปีที่แล้ว +4

      I'll add these to the list, I really appreciate the suggestions!
      I did cover user roles with Devise last wek if that's something that interests you: th-cam.com/video/FdCsBwI7raY/w-d-xo.html

    • @diegojaraestivill5620
      @diegojaraestivill5620 หลายเดือนก่อน

      @@Mixesha001 It's true, but this is more of a video of the basic fundamentals for rails newbies and it is greatly appreciated

  • @wanna_1_year_vacation
    @wanna_1_year_vacation 2 ปีที่แล้ว +5

    I'm always enjoying watching your videos as a rails developer. Thank you for the video.

    • @Deanin
      @Deanin  2 ปีที่แล้ว

      Thank you for the kind words, I'm glad you enjoy the videos!

  • @developerfoe
    @developerfoe 2 ปีที่แล้ว +1

    quite appreciatable thing ... someone working on courses/videos of latest ROR version....

  • @nonanik112
    @nonanik112 2 ปีที่แล้ว +3

    You are one of the valuable educators on this platform

    • @Deanin
      @Deanin  2 ปีที่แล้ว +1

      Thanks haha, I really appreciate the kind words!

  • @shiccorama
    @shiccorama ปีที่แล้ว +1

    Thank you so much Deanin

  • @EnjoytheMents
    @EnjoytheMents 2 ปีที่แล้ว +1

    Very nice video Deanin!

    • @Deanin
      @Deanin  2 ปีที่แล้ว

      I appreciate it!

  • @willmattwood
    @willmattwood ปีที่แล้ว

    I found this video extremely helpful. I am a React developer currently with a Ruby background, still brand new to Rails. So it actually took me a few hours to go through it because at each step I had to add something new to my mental model of rails. But all in all - really a great tutorial and also helped me build out my understanding of web dev generally. Really appreciated this!

  • @mohinidahiya
    @mohinidahiya หลายเดือนก่อน

    very simple and clear!

  • @vuminhtien5841
    @vuminhtien5841 2 ปีที่แล้ว

    Thanks for your sharing. It helps me a lot.

  • @Deanin
    @Deanin  2 ปีที่แล้ว +6

    The channel has a discord where we'll try to answer your questions: discord.gg/vumKwDk
    Hope the video is helpful, more to come soon! (hopefully lol)
    Edit2: User Authentication with Rails and React using the Doorkeeper Gem is live now! th-cam.com/video/KnTtdxRlEE0/w-d-xo.html
    Edit: React + Redux + TypeScript CRUD app with Rails 7 API is up here: th-cam.com/video/ZGnMqKg-Cq4/w-d-xo.html

  • @ОлегСлепухов
    @ОлегСлепухов ปีที่แล้ว

    Thanks, it's exactly what I need :)

  • @ThEReAlCrAnTlY
    @ThEReAlCrAnTlY 6 หลายเดือนก่อน

    great tutorial

  • @manuelmens8558
    @manuelmens8558 2 ปีที่แล้ว

    My first time watching you and you're awesome and swagerize

  • @SachinSingh87
    @SachinSingh87 2 ปีที่แล้ว

    Helped a lot.

  • @shreyasrajagopal4433
    @shreyasrajagopal4433 ปีที่แล้ว

    11:20 "fancy but also unsettling" :)

  • @williamromerovela
    @williamromerovela 2 ปีที่แล้ว +4

    Thank you for this great video. It could be nice if you create a video for each way to create react-rails apps. Thank you in advance.

    • @williamromerovela
      @williamromerovela 2 ปีที่แล้ว +1

      There are many text tutorials to create a react rails apps but doesn’t go deep on the pros and cons to uses each way to implement it.
      Thank you again.

  • @wesleygrant2245
    @wesleygrant2245 2 ปีที่แล้ว +6

    What extension are you using for those React autocompletes? Also could you explain the mounted cleanup function in your useEffect a little? I run into a lot of issues with empty dependency arrays. Super awesome video though, thank you for this!

  • @jhonacosta8450
    @jhonacosta8450 ปีที่แล้ว

    never had used rails. So impresed by scaffold command. I'd like to see more extend use of rails power for backend. Tysm

  • @hawkespoulter556
    @hawkespoulter556 9 หลายเดือนก่อน +1

    10/10

  • @siyaram2855
    @siyaram2855 2 ปีที่แล้ว +1

    I feel so much at home when I see people using Windows Machine for Dev related stuff

    • @Deanin
      @Deanin  2 ปีที่แล้ว +1

      It's really funny how unpopular it is with people who do tutorials, but how common it is in industry lol.
      I'm glad that it seems to be helpful for people to see it done in an environment that you can also play games in 😂

    • @siyaram2855
      @siyaram2855 2 ปีที่แล้ว +1

      @@Deanin With WSL, Windows machine is a development beast.
      I was on mac for 3 months, I felt so much restrictive when it comes to proper softwares(free) or even productive workflow.
      I switched back to windows now. It gives you so much more option to customize. Setting it up msy tske time but once you do it, it works like a charm.

  • @hledaczvirat_cz
    @hledaczvirat_cz ปีที่แล้ว

    I have never seen declaring let mounted = true and to clear side effects mounted = false. Could you explain the usage a bit? Thanks

  • @alemiralles8961
    @alemiralles8961 2 ปีที่แล้ว +1

    Thanks

    • @Deanin
      @Deanin  2 ปีที่แล้ว

      Glad it was helpful, and thank you too!

  • @minmaunghein7236
    @minmaunghein7236 ปีที่แล้ว +1

    Rails API, how to receive photo from react native

  • @celina6204
    @celina6204 2 ปีที่แล้ว +5

    Would love to see the CRUD functionality in React. I'm working on a small personal project and I had trouble figuring out where to start. Thanks a lot for this.

    • @Deanin
      @Deanin  2 ปีที่แล้ว +1

      Glad it helped! I'll take a look at getting something up ASAP to help out with your project. 🙂

    • @Deanin
      @Deanin  2 ปีที่แล้ว +7

      Just wanted to follow this up that the CRUD tutorial is now up. Hope it helps!
      th-cam.com/video/ZGnMqKg-Cq4/w-d-xo.html

    • @Lucas-bh3et
      @Lucas-bh3et 2 ปีที่แล้ว +1

      @@Deanin i love u, thanks 🥵🥵

    • @fabricio-garcia
      @fabricio-garcia 2 ปีที่แล้ว +1

      I don't know if someone told you this already Dean, but you are a real superhero 😊

  • @Msmykolas17
    @Msmykolas17 2 ปีที่แล้ว +3

    Crud please with react and rails

    • @Deanin
      @Deanin  2 ปีที่แล้ว +4

      Will do!

  • @RaedTulefat
    @RaedTulefat 2 ปีที่แล้ว +1

    Thank you! What is the co-pilot extension?

    • @Deanin
      @Deanin  2 ปีที่แล้ว

      It's just GitHub CoPilot. They launched it to perform suggested code based on a ML algorithm they trained from (what they claim was only) public repositories. It's very nice for casual use, but for anything production grade there's a big warning: it has been shown to grab licensed code from repositories even if it goes against what the license states is legally allowed, and then branding that code with a new license.
      Basically for businesses it's a disaster waiting to cause lawsuits. But for learning how a new tool works, it's a godsend. You can sign up at this link, and then just search the extension on VS Code after you get into the program, which can take months sometimes because it's still a preview build.
      copilot.github.com/

    • @RaedTulefat
      @RaedTulefat 2 ปีที่แล้ว +1

      @@Deanin wow very interesting. Thanks for sharing!

  • @cherylcollier466
    @cherylcollier466 2 ปีที่แล้ว

    Thanks for this, when I try to run a simple model test I get a whole load of console errors, do you know why this could be?

  • @bobbyd1231
    @bobbyd1231 2 ปีที่แล้ว

    Is there no way to compile bookable to the public folder?

  • @focusme-tv3650
    @focusme-tv3650 ปีที่แล้ว +1

    Hey Deanin! 🔥
    I have a question for you: How to deploy such an app? Indeed the Rails API and React apps are inside the same project folder. But how to handle it?
    I wanted to find a solution to deploy both Rails API + React on the same server.
    I think there's probably a solution with the "react-rails" gem, injecting the components in the views with a helper, but I'm not a fan...
    Is it actually possible with your implementation? And if yes how?
    Thank you in advance!
    A.MLL

    • @mellonaudion4870
      @mellonaudion4870 ปีที่แล้ว

      Hi,
      I've the same question here ! Did you manage this ?

  • @eoghanfeighery7383
    @eoghanfeighery7383 ปีที่แล้ว

    Would this tutorial work in an existing RoR project?

  • @siyaram2855
    @siyaram2855 2 ปีที่แล้ว +2

    Hello, Deanin. How are things going for you?
    Have you experimented with Rails and a CMS?
    I haven't heard much about CMS in the Rails community. CMS for small-intermediate apps is common in the JS Ecosystem, such as JAMStack. Some people use CMS solely as a backend.
    I was considering creating something with Rails but with CMS integration so that non-tech team members could also use it.
    Strapi is what we use. Is it possible to connect it to Rails? I was wondering how it would turn out.
    Rails' monolithic approach appeals to me. But I'm not sure if that'll work. It could be a rails API and a Strapi API that is consumed in a NextJS frontend. Ahhh... I'm not sure, please let me know.

    • @Deanin
      @Deanin  2 ปีที่แล้ว

      Haven't personally tried a CMS in Rails. If I ever need a CMS, 9 times out of 10 I just spin up WordPress so that I don't have to reinvent the wheel lol.

    • @siyaram2855
      @siyaram2855 2 ปีที่แล้ว +1

      Thanks man.
      Rails look so wise to me.
      I am learning it after hiatus from JS frameworks.
      Why don't you build a course on it?

    • @Deanin
      @Deanin  2 ปีที่แล้ว

      I actually just started my first course! It's $10 and still a work in progress, but it covers creating a Linktree Clone. I made the first two hours of lessons free which covers creating a basic version, with the premium lessons covering stuff like analytics and that mobile phone preview panel that Linktree has lol. I tried to make the paid version as a way to polish the app, so that people don't feel like they're missing out too much by only following the free lessons.
      You can checkout the free version at learn.deanin.com 🙂

    • @siyaram2855
      @siyaram2855 2 ปีที่แล้ว +1

      @@Deanin That's a great news.
      Mix and Go channel has also released a course this year, but I feel it is unaffordable for a lot of people.
      Will check it out

    • @siyaram2855
      @siyaram2855 2 ปีที่แล้ว +1

      I guess you should do more n more courses on cloning.
      Something that code4startup use to do few years back.
      You can market it well.

  • @siyaram2855
    @siyaram2855 2 ปีที่แล้ว +1

    How does it perform in concurrency test?
    The integration has improved a lot and it is much simpler now.
    I remember trying rails last year and trying it with react and the process was so weird that I stopped learning it.

    • @Deanin
      @Deanin  2 ปีที่แล้ว +2

      I think its concurrency has improved quite a bit, and considering the applications it's used for it's probably fine.
      I think the biggest issue for me is that if I'm honestly going to build an application that I expect to have a life cycle, I'm going to use something like DotNet or a stack like MERN.
      At this point I really just create these tutorials to help people who still use Rails, but if someone asks me what to learn I almost always tell them that there's better options.
      There's either more job opportunities with a JS stack, or there's more open positions as a C# developer. You're also just getting more innovation than you seem to get from Rails these days, as a lot of the features are just extractions from Basecamp it seems.
      Just my opinion though, so take it with a grain of salt.

    • @siyaram2855
      @siyaram2855 2 ปีที่แล้ว

      @@Deanin couldn't agree more with you

    • @siyaram2855
      @siyaram2855 2 ปีที่แล้ว +2

      I still feel we have nothing as comparable to rails in Js ecosystem.
      Though many futile attempts have been made.

    • @Deanin
      @Deanin  2 ปีที่แล้ว +1

      That's so true, and it's unfortunate. I miss a lot of the magic sometimes, and the magic that some JS frameworks create is instead just really annoying lol.

  • @katejohnson2648
    @katejohnson2648 2 ปีที่แล้ว +1

    what extension does all that autocomplete?

    • @Deanin
      @Deanin  2 ปีที่แล้ว

      GitHub CoPilot does the more advanced autocomplete,, tab nine does the smaller suggestions (I'm using the free version)
      They can get in each other's way sometimes, but overall they can be very helpful when writing code. 🙂

    • @katejohnson2648
      @katejohnson2648 2 ปีที่แล้ว +1

      @@Deanin thank you!

  • @DevBishwasBh
    @DevBishwasBh 2 ปีที่แล้ว

    Can I use react without making apis?

  • @pablo6263a
    @pablo6263a 2 ปีที่แล้ว +2

    can you share this repo?

    • @Deanin
      @Deanin  2 ปีที่แล้ว +1

      Oops! Good catch, looks like I forgot to push up the code. When I get back on my computer I'll push it up and reply to this again. Give me an hour or two. Sorry about that!

    • @Deanin
      @Deanin  2 ปีที่แล้ว +1

      Sorry about the delay. Should be up now at github.com/Deanout/bookstore-react-video

  • @pedropaulino6289
    @pedropaulino6289 2 ปีที่แล้ว +1

    Instead of using create-react-app , have you tried using Next.JS ?

    • @Deanin
      @Deanin  2 ปีที่แล้ว +1

      I've been wanting to look into it, but from what I'm seeing it seems like it'd be really useful. I'm hoping to branch out towards more JS stuff in the near future to grow the channel, so if you see a NextJS tutorial just know that you're the catalyst that caused it haha.

    • @pedropaulino6289
      @pedropaulino6289 2 ปีที่แล้ว +1

      @@Deanin lol ! I asked because I am studying to use Next with Rails for a project, because, integrates better with my UX tooling.

  • @salomaonovacena6198
    @salomaonovacena6198 2 ปีที่แล้ว

    Deanin, Is Vue technology more viable than react or is it a matter of personal choice?

  • @abdu5822
    @abdu5822 2 ปีที่แล้ว

    Hey Deanin, please create full site clone with React and rails api with jwt authentication, email sending and background jobs. Thanks buddy.

  • @siyaram2855
    @siyaram2855 2 ปีที่แล้ว +1

    Do a CRUD Tutorial with NEXT.js, GraphQL and Rail 7

    • @Deanin
      @Deanin  2 ปีที่แล้ว +1

      Added it to the list! 🙂

    • @siyaram2855
      @siyaram2855 2 ปีที่แล้ว

      @@Deanin You are awesome.

  • @nafcho1
    @nafcho1 2 ปีที่แล้ว +1

    Step Bro xd

  • @ethanfreeman9074
    @ethanfreeman9074 8 หลายเดือนก่อน

    this was way too confusing for how simple it is