Infinite | Squares

Art of code and more

Node.js Project Base Template

There are many Node.js starting template, and after working couple times with Expressjs, I also ended up creating my own base template. You can check it out here.

Base template ideally support your workflow and it has some structure to organize your code. My base template is not meant to be a full fledged framework like sailsjs, it just a bunch of codes that I would like to be readily available when I started a Node.js project. As I work more with Node.js, my base template will be evolving.

Components

  • MongoDB as database
  • Passport to manage authentication with session stored in MongoDB
  • Formidable for multipart post
  • Swig as templating engine
  • Generic MongoDB query
  • Front end components
    • Bootstrap
    • Font awesome
    • jQuery

Comments