Skip to content
Social Authentication using PassportJs - authenticating with Facebook & Twitter
JavaScript CSS
Branch: master
Clone or download
Pull request Compare This branch is 1 commit behind agrajm:master.
Agraj Mangal
Agraj Mangal Update Readme
Latest commit 0ed6b4e Dec 13, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Initial commit for passport-social Dec 13, 2014
models Initial commit for passport-social Dec 13, 2014
passport
public/stylesheets Initial commit for passport-social Dec 13, 2014
routes Initial commit for passport-social Dec 13, 2014
views Initial commit for passport-social Dec 13, 2014
.gitignore Initial commit for passport-social Dec 13, 2014
README.md Update Readme Dec 13, 2014
app.js Initial commit for passport-social Dec 13, 2014
db.js Initial commit for passport-social Dec 13, 2014
fb.js
package.json Initial commit for passport-social Dec 13, 2014
twitter.js

README.md

passport-social

This repository serves as an example for a basic Node.js application which is using Passport as the authentication middleware for authenticating against Facebook and Twitter and storing the details in a locally configured Mongo backend

Steps to run the app

  • After cloning the repo, install the dependencies by running npm install
  • Create facebook and twitter apps and update the config files fb.js and twitter.js with the respective app details before running the server.
  • To start the server, run npm start on the base directory

Perquisites

The server assumes that you have a local mongo instance running. This means if you have mongo installed locally, all you need to do is configure the db.js file correctly and run the mongod daemon

You can’t perform that action at this time.