seyDoggy / express-boilerplate

Express boilerplate integrated Passport, Nodemailer and Initializr(Bootstrap)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

express-boilerplate

===================

Express.js boilerplate integrated Passport, Nodemailer and Initializr(Bootstrap).

This project stole node-boilerplate's idea, which I think is the most easy-use boilerplate ever.

However, I feel it could be more useful, if some most popular components were integrated as those are almost always needed when you start a project. Therefore, I created this boilerplate based one the latest express.js (>= 3.1.0) and node.js (>= 0.10.0) and integrated Passport's Local-Strategy, Nodemailer and [Initializr's Bootstrap boilerplate]((http://www.initializr.com/).

===================

Development

After you initialize your project, you'll have a basic app with a simple User model (email, password) using Mongoose, signup/login/logout features using the Passport Local-Strategy authentication in Twitter-Bootstrap style.

You need to update ./app.js and ./models/user.js for MongoDB configuration.
You need to update ./routes/mailer.js for Nodemailer configuration.

It supports the latest version of Express.js and Node.js and the others, as I didn't restrict the version. So please let me know, if there's anything broken. A list of dependencies:

├── bcrypt@0.7.5
├── connect-flash@0.1.0
├── connect-mongo@0.3.2
├── express@3.2.0
├── jade@0.30.0
├── mongoose@3.6.8
├── nodemailer@0.4.1
├── passport@0.1.16
└── passport-local@0.1.6

Resources

  1. node-boilerplate
  2. Password Authentication with Mongoose Part 1
  3. Password Authentication with Mongoose (Part 2): Account Locking
  4. cdnjs - the missing cdn
  5. HTML 2 Jade Converter

About

Express boilerplate integrated Passport, Nodemailer and Initializr(Bootstrap)