title: Using passport.js with DynamoDB
body: <p>I am new to node.js and I have made some simple static pages using ejs, and just recently began storing and retrieving data with DynamoDB on AWS.  Now, I want to make a simple user authentication app using passport for signup, login, and logout.  </p>
  
  <p>I found the following: <a href="https://github.com/christianboutin/passportjs-dynamodb" rel="nofollow noreferrer">https://github.com/christianboutin/passportjs-dynamodb</a></p>
  
  <p>However, I'm not sure how to implement.  I I think i would add something like the following in my routes.js file:</p>
  
  <pre><code>router.post('/signup', passport.authenticate('local-signup', {
      successRedirect : '/index',
      failureRedirect : '/signup1', 
      failureFlash : true 
  }));
  </code></pre>
  
  <p>Is this the right approach?  Would I just include the passport.js file from the git repository in the routes.js file to achieve this?</p>