Nodejs Sample - A simple e-commerce using Node.js + Express.js + Swig + Passport.js + Helmet.js + Gulp and implements MVC pattern.
Baconpress is a template project that works with Node.js + Express.js + Swig + Passport.js + Helmet.js + Gulp and implements MVC pattern.
- Node.js - Download and Install Node.js. You can also follow this gist for a quick and easy way to install Node.js and npm
- MongoDB - Download and Install MongoDB - Make sure
mongod
is running on the default port (27017). You can use mongo as a service, for example: https://mongolab.com/
- NPM - Node.js package manage; should be installed when you install node.js.
- Clone this repository $git clone https://github.com/marcusvas/nodejs-sample.git
- $npm install
- $gulp
- Be happy ;)
###dependencies
"bcrypt-nodejs":" native JS bcrypt library for NodeJS"
"body-parser":" Node.js body parsing middleware"
"compression":" Node.js compression middleware."
"connect-ensure-login":" Login session ensuring middleware for Connect and Express."
"connect-flash":" The flash is a special area of the session used for storing messages."
"cookie-parser":" Parse Cookie header and populate req.cookies with an object keyed by the cookie names.
"email-templates":" Node.js module for rendering beautiful emails with ejs, jade, swig, hbs, or handlebars templates and email-friendly inline CSS using juice."
"errorhandler":" Development-only error handler middleware "
"express":" Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
"express-session":" express-session
"helmet":" help secure Express/Connect apps with various HTTP header "
"lodash":" lodash module bundles for Node.js/io.js "
"method-override":" Override HTTP verbs. "
"mongoose":" elegant mongodb object modeling for node.js "
"morgan":" HTTP request logger middleware for node.js "
"multer":" Node.js middleware for handling multipart/form-data
. "
"node-dir":" asynchronous file and directory operations for Node.js "
"node-uuid":" Generate RFC-compliant UUIDs in JavaScript "
"nodemailer":" Nodemailer is an easy to use module to send e-mails with Node.JS (using SMTP or sendmail or Amazon SES) and is unicode friendly - You can use any characters you like ✔"
"nodemailer-sendgrid-transport":" "~0.1.0", /* This module is a transport plugin for Nodemailer that makes it possible to send through SendGrid's Web API! "
"passport":" middleware para login "
"passport-facebook":" login social "
"passport-google-oauth":" login social "
"passport-local":" login custom "
"passport-local-mongoose":" login social "
"passport-twitter":" login social "
"serve-favicon":" favicon "
"shortid":" /*Short id generator. Url-friendly. Non-predictable. Cluster-compatible. "
"swig":" "
"unirest":""
"winston":" "
"express-validator":""