Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
public
routes
test
views
.gitignore
README.md
app.js
package.json

README.md

oauth-sample

This is a sample project of oauth with everyauth.

Install dependencies

$ npm install

Configuration

This project uses node-config. So, create configuration file.

  • make directory

    $ mkdir config
    
  • Edit the default configuration file (.js, .json, or .yaml):

    $ touch config/default.json
    $ vi config/default.json
    
    {
      "server" : {
        "host" : "localhost", // server host
        "port" : 9002,        // server port
        "database" : {
          "host" : "localhost",           // mongoose server host
          "dbname" : "everyAuth-sample"   // mongoose database name
        }
      },
      "everyauth" : {
        "facebook" : {
          "appId" : "xxx",
          "appSecret" : "xxx"
        },
        "github" : {
          "appId" : "xxx",
          "appSecret" : "xxx"
        },
        "twitter" : {
          "consumerKey" : "xxx",
          "consumerSecret" : "xxx"
        }
      }
    }
    
  • Start your application server:

    $ export NODE_ENV=production
    $ node app.js
    

Test

TODO

Something went wrong with that request. Please try again.