While trying to get setup to contribute to the freeCodeCamp code base I ran into a lot of trouble trying to get logged in now that it’s setup to be done without a password or social authentication. This is what I eventually figured out to get in and start working with a live copy.
-
Follow the outline @ The Contributor’s Guide to get the repo cloned and all the dependencies installed.
-
You’ll find yourself here. At this point make sure your browser is pointed at http://localhost:3000 NOT http://localhost:3001!
- Click Start coding, then continue with email, enter your email address, and request your magic link
You will be presented with 2 things that are going to make you think your screwed. The button you clicked is going to green out and the server is going to crash! Don’t fret. I got you
- Restart the server by typing “rs” then hitting “enter” into the shell window that’s running gulp.
- Now there are a few ways to do this, but I am using robo3t to get the token from the database that was created when you requested the authentication link from the database. The server crashed because it can’t connect to the AWS account that freeCodeCamp uses to send these emails, so there is no email, but there is a token!
- Take that token and the email you used to sign up back to your browser and goto http://localhost:3000/passwordless-auth/?email=YOUREMAILHERE&token=YOURTOKENHERE
- Happy Coding!!