-
Notifications
You must be signed in to change notification settings - Fork 2
FreeCodeCamp Log In To Local Instance
This guide will help you log in to your local FCC site using your GitHub account. This process should be similar for logging in with other social media accounts. This guide assumes you already have a local copy of FCC up and running.
- Register a new OAuth application
- Homepage field:
http://localhost:3000/ - Callback field:
http://localhost:3000/auth/github/callback - Copy/paste the Client ID and Client Secret into your
.envfile - Use port 3000 when viewing your local FCC site
If you need help getting FCC setup on your local machine, here are a few useful links to help you get started:
- How To Fork And Maintain a Local Instance of Free Code Camp
- How To Create a Pull Request for Free Code Camp
- Open Issues Labeled as Help Wanted
Free Code Camp Issue Mods and staff are on hand to assist with Pull Request related issues on our Help Contributors Chat Room
The output from running $ gulp mentions the Access Port is 3001. I have only successfully logged in with GitHub at port 3000 - the Proxy Port. If you understand how to log in using other ports, please consider submitting a pull request on this wiki.
- Register a new OAuth application and click Register new application
Alternatively, click your Profile Picture => Settings => Applications => Developer applications => Register new application

- Fill out OAuth application fields
-
Application name - choose any name, like
fcc-local -
Homepage URL - set to
http://localhost:3000/ - Application description - optional
-
Authorization callback URL - set to
http://localhost:3000/auth/github/callback
- Click Register application to see the newly registered application page with your Client ID and Client Secret.

- Copy and paste your Client ID and Client Secret into your
.envfile.
Note: your Client ID and Client Secret will be long alphanumeric values.

-
Remove / unset with comment block the unwanted provider in passport-provider.
-
Add SESSION_SECRET and COOKIE_SECRET in
.envif you get error on express-session and cookieParser.
COOKIE_SECRET='secret'
SESSION_SECRET='secret'
- Run command
node seedbefore rungulpif you dont get the challenges.
Congratulations! You can now successfully log into your local FCC site using your GitHub account.
Learn to code and help nonprofits. Join our open source community in 15 seconds at http://freecodecamp.com
Follow our Medium blog
Follow Quincy on Quora
Follow us on Twitter
Like us on Facebook
And be sure to click the "Star" button in the upper right of this page.
New to Free Code Camp?
JS Concepts
JS Language Reference
- arguments
- Array.prototype.filter
- Array.prototype.indexOf
- Array.prototype.map
- Array.prototype.pop
- Array.prototype.push
- Array.prototype.shift
- Array.prototype.slice
- Array.prototype.some
- Array.prototype.toString
- Boolean
- for loop
- for..in loop
- for..of loop
- String.prototype.split
- String.prototype.toLowerCase
- String.prototype.toUpperCase
- undefined
Other Links