Went through this whole course and followed everything exactly and I must say, it was SUPER smooth. No errors or problems with troubleshooting, and I did this January 2021. It still holds up with new versions of Rails and React. Loved this course, now I have a front and back end template in my github to clone down anytime I want to make an app with user login/auth. Thank you for these well-planned, excellently executed videos with CLEAR instruction and great explanations.
finding your channel felt like finding gold man all your contents have interesting topics and the explanation is spot on please do keep up the good work!
Are you planning to create Ruby on Rails 7 new course ? Like the old one for 5 on udemy, I think we need ruby 3 and Ruby on Rails 7 kind in details new course, think about it please.
It really comes down to personal preference. Libraries like that can work well, but I don't like introducing libraries unless they're absolutely needed.
First off, I love this, it's exactly what I've been looking for. I have one question though, would I need to have my react application and rails application separate? Or could I do all of this while having everything live on the same app? (using react-rails). If you recommend keeping them both separate, could you explain why?
You can definitely keep them in the same app. I personally like having them separated, it makes it more straightforward to have teams working on separate applications.
Seems like a pretty clear tutorial, mate, well done. I've got a quick question for ya. I'm trying to build a blog where certain posts are only available to subscribed users. If I wanted to add a payment method to the user model (like charge $10/month as a subscription model via paypal or stripe for example), do you have any advice on certain gems or libraries I could use to implement this?
Thank you for the tutorial! I have a question, I am starting to build a webapp and I used your tutorial to implement auth. However I recently was reading about how mobile apps use tokens. So say I want to create an iOS app in the future, will I have to add JWT to rails to use the same api? Or will I have to scrap the cookie authentication and just use JWT? Is there a way people get around this, Ik companies like facebook and gmail still use cookies so there must be a good solution. Sorry I am new to web dev.
Hi dear, excellent your videos, that it's exactly to need for my app. So, i have a cuestion about the complete rails app vs api rails app. Why do not use the api flag? I don't understand this part, because in everything sites, i saw the developers works to api flag as back end. What it is the best practice for this cases?
For the session_store is it required to set up different values for stage, dev and prod environment? or is just the string of the production domain enough to give it a unique value?
Hi, thank you for the very informative videos you are an amazing teacher. I have one question, you mention you don't like to use the api_only flag because you would have to add in some functions anyway to access the session. I have been developing a full api app and just now i have faced this issue about the sessions. How should i configure my app to overcome this problem and get full access to sessions?
Hello. Followed this through and it was great. Could i use this method more or less but use the devise gem as well so I get all that built in functionality? Or would the necessitate moving to a token based auth system?
If you use devise, you would need to use their built in methods for sign in and sign out, along with checking for the authentication, that's why I didn't use them in the course.
@@edutechional got it. What I'm asking is lets say i set up devise like normal for session based auth. would your react setup work with my hypothetical backend? (as long as i add cors and the other configurations you did)
I actually have a full course on my vim config, you can see the intro for it here and it also has a coupon code if you're interested in the full one: th-cam.com/video/zKxAV_RlGnU/w-d-xo.html
Hi, Can you update your Rails and Angular 2 course on Udemy? It was good course, but it too old now ... Please update it. Thanks. I am Nyoman, from Bali, Indonesia
Hi thanks for sharing this! I've already implement this authentication but i found a problem when i deploy to heroku the cookie is not created but it is created in local, can you help me? thanks.
In a Rails application, you can change into that directory and run the command: rails c That will open up the Rails console and give you access to the database. Alternatively, you can also run the psql command to access the database directly.
Went through this whole course and followed everything exactly and I must say, it was SUPER smooth. No errors or problems with troubleshooting, and I did this January 2021. It still holds up with new versions of Rails and React. Loved this course, now I have a front and back end template in my github to clone down anytime I want to make an app with user login/auth. Thank you for these well-planned, excellently executed videos with CLEAR instruction and great explanations.
Thanks for the kind words, I'm glad that you enjoyed it!
you are seriously the best rails teacher I've found. Thank you!
This is the best React + Rails Auth video you will find on the internet for FREE. We need to keep this somewhere for posterity.
Thanks for the kind words!
finding your channel felt like finding gold man
all your contents have interesting topics and the explanation is spot on
please do keep up the good work!
Really like your courses, excited to go through this one.
Fantastic!
Wow! That's an awesome video Jordan! Very educative...
Glad you liked it!
Are you planning to create Ruby on Rails 7 new course ? Like the old one for 5 on udemy, I think we need ruby 3 and Ruby on Rails 7 kind in details new course, think about it please.
Awesome! I have been wanting to combine Rails and React. Really cool! Keep up the good work
Awesome! I hope you enjoy it!
Would be nice if you could expand on the advantages/disadvantages of this approach for auth over using a library like devise, sorcery, etc.
It really comes down to personal preference. Libraries like that can work well, but I don't like introducing libraries unless they're absolutely needed.
First off, I love this, it's exactly what I've been looking for. I have one question though, would I need to have my react application and rails application separate? Or could I do all of this while having everything live on the same app? (using react-rails). If you recommend keeping them both separate, could you explain why?
You can definitely keep them in the same app. I personally like having them separated, it makes it more straightforward to have teams working on separate applications.
edutechional so then if they’re in the same application, the domain in Cors and session_store would be the same right?
Does this work on Rails version 7+?
I tried things from this first video of the course, for now it works for me
thanks but how then do react send data to the rails backend passing the auth token as header, then rails checks if the token is validated
Seems like a pretty clear tutorial, mate, well done. I've got a quick question for ya. I'm trying to build a blog where certain posts are only available to subscribed users. If I wanted to add a payment method to the user model (like charge $10/month as a subscription model via paypal or stripe for example), do you have any advice on certain gems or libraries I could use to implement this?
I'd personally use Stripe, they have a great gem and examples for how to build that out
1:11, cocaine? :D
Tutorial looks awesome. Thanks man. :D
gosh I wish I could master VIM like you do!
Just takes practice! I also have a course specifically on how I use Vim here: www.udemy.com/course/vim-training-course-ruby-developers/
Thank you for the tutorial! I have a question, I am starting to build a webapp and I used your tutorial to implement auth. However I recently was reading about how mobile apps use tokens. So say I want to create an iOS app in the future, will I have to add JWT to rails to use the same api? Or will I have to scrap the cookie authentication and just use JWT? Is there a way people get around this, Ik companies like facebook and gmail still use cookies so there must be a good solution. Sorry I am new to web dev.
Hi dear, excellent your videos, that it's exactly to need for my app. So, i have a cuestion about the complete rails app vs api rails app. Why do not use the api flag? I don't understand this part, because in everything sites, i saw the developers works to api flag as back end. What it is the best practice for this cases?
If the react app is an embedded app, can we dynamicly add the allowed origins? So create one per record in a database list of sites it is embedded on?
Would this method work for non-browser apps?
For the session_store is it required to set up different values for stage, dev and prod environment? or is just the string of the production domain enough to give it a unique value?
Hi, thank you for the very informative videos you are an amazing teacher.
I have one question, you mention you don't like to use the api_only flag because you would have to add in some functions anyway to access the session.
I have been developing a full api app and just now i have faced this issue about the sessions. How should i configure my app to overcome this problem and get full access to sessions?
You can add those features back into the config/application.rb file
Awesome Great channel, I just got subscribed
Thanks!
When was the last time you used mouse…
Hello. Followed this through and it was great. Could i use this method more or less but use the devise gem as well so I get all that built in functionality? Or would the necessitate moving to a token based auth system?
If you use devise, you would need to use their built in methods for sign in and sign out, along with checking for the authentication, that's why I didn't use them in the course.
@@edutechional got it. What I'm asking is lets say i set up devise like normal for session based auth. would your react setup work with my hypothetical backend? (as long as i add cors and the other configurations you did)
Yes, you would just need to use the built in helper methods that Devise provides.
@@edutechional awesome, thanks for the help youre the man
awesome, could you do a video about your current terminal and vim configuration?
I actually have a full course on my vim config, you can see the intro for it here and it also has a coupon code if you're interested in the full one: th-cam.com/video/zKxAV_RlGnU/w-d-xo.html
Hi,
Can you update your Rails and Angular 2 course on Udemy?
It was good course, but it too old now ...
Please update it.
Thanks.
I am Nyoman, from Bali, Indonesia
I will, I'm also going to include a project that includes React
Hi thanks for sharing this! I've already implement this authentication but i found a problem when i deploy to heroku the cookie is not created but it is created in local, can you help me? thanks.
It's most likely related to Chrome blocking cross domain cookies. Both applications need to be on the same domain for that to work.
@@edutechional yes it's from chrome, i found add this same_site: :none and secure: true on Rails.application.config.session_store solve the problem.
How can I access the postgresql database now through the command line?
In a Rails application, you can change into that directory and run the command: rails c
That will open up the Rails console and give you access to the database. Alternatively, you can also run the psql command to access the database directly.
clearly explained
Thanks!
@@edutechional Suggestion next videos action cable for Rails restFul api with react!
I hope it will be a full tutorial
I hope you like it, I'm releasing a new tutorial everyday for the next 8 days, this is part 1 of 8.
Wow @@edutechional it's the best news I heard these days!
Just published episode 2: th-cam.com/video/FwfsMv2kSX4/w-d-xo.html
Why is with_credentails so important?
That's what sends the cookies from the front end to the server.
when udemy course ?
Right now I'm just posting on here and for the Bottega Code School.
@@edutechional where is it located on the Bottega Code School, I can't find it?
313th Like :)
Beginners ?
For beginners, I recommend to start off with my Dissecting Rails course, you can see it here: www.udemy.com/professional-rails-5-development-course/
It really is an amazing course.