Overview

If you are building node.js applications, you may need some template project to start quickly and not to perform simple configuration every time. This configuration may contain access to MongoDB, security infrastructure and so on. My colleague Anton Dimkov has committed his template on Github. Also, the template can be installed with npm.

Features

  • Configured simple routes for express
  • Integrated MongoDB access with mongoose
  • Integrated security with password hashing based on bcrypt-nodejs
  • Login page
  • Session management with express-session
  • Logging with winston
  • Integrated Angular and simple SPA front-end structure
  • Bootstrap styles integrated

Installation and configuration

  1. Install Node.js according to the instructions at https://nodejs.org/
  2. Install and run MongoDB according to instructions at http://www.mongodb.org
  3. Download code from git hub
  4. Install all required modules by running npm install in terminal
  5. Run application with node www/bin
  6. Open http://localhost:9090/ in web-browser

Try this simple way to start using Node.JS correctly or to start a project.