This is the code from the Advanced React course by Stephen Grider at Udemy
Working on section 7 - Auth client
I have used a slightly different starting point for my 4 projects by forking Stephen's ReduxSimpleStarter here.
It has the calls to the Google Maps API removed, the test_helper after the testing section, and one or two files re-formatted.
I have used Login/Logout instead of Signin/Signout consistently across the Auth server and client, because I prefer the complete difference in words. I have confused myself, and I have seen lecturers / co-workers confuse themselves and me when there is the slip of the tongue between talking about signin and signup. e.g.
-
server authentication.signin -> authentication.login
-
server router /signin, requireSignin -> /login, requireLogin
-
client index /signin -> /login
-
client index /signout -> /logout
-
client Signin -> LoginForm
-
client Signout -> Logout
-
client actions signinUser, signoutUser -> loginUser, logoutUser
-
... and so on
Axios has changed the way that errors are caught, so in the action creator signupUser() it needs the following
.
.
})
.catch(error => dispatch(authError(error.response.data.error)));
instead of the code that Stephen writes, which is
.catch(response => dispatch(authError(response.data.error)));
I have used Git at the command-line for almost 10 years. Over that time, I have tried many different graphical shells for Git, without finding one that was easier and nicer to use than the command-line (in my view).
I have now found that GitKraken is an excellent Git shell and would advise using it to everyone.
If you have any questions about this repository, or any others of mine, please don't hesitate to contact me.