Skip to content

ULL-ESIT-SYTW-1617/express-4.x-github-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This example is a fork from passport/express-4.x-facebook-example and demonstrates how to use Express 4.x and Passport to authenticate users using GitHub. Use this example as a starting point for your own web applications.

[~/.../useoctonode/express-4.x-github-example(master)]$ pwd -P
/Users/casiano/local/src/javascript/learning/useoctonode/express-4.x-github-example

Instructions

To install this example on your computer, clone the repository and install dependencies.

$ git clone [email protected]:ULL-ESIT-SYTW-1617/express-4.x-github-example.git
$ cd express-4.x-github-example
$ npm install
  • The example uses environment variables to configure the consumer key and consumer secret needed to access GitHub's API. Start the server with those variables set to the appropriate credentials.
$ CLIENT_ID=__GITHUB_CLIENT_ID__ CLIENT_SECRET=__GITHUB_CLIENT_SECRET__ node server.js

About

Express 4.x app using Passport for authentication with GitHub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.9%
  • HTML 11.1%
  • Shell 3.0%