Express Boilerplate

screenshot of Express Boilerplate
express

Express boilerplate using MVC pattern and ES2015

Overview

This Express boilerplate is designed for developers who appreciate the structure and conventions of Ruby on Rails and Ember.js. By following the MVC pattern, it provides a straightforward and organized way to build web applications using Node.js and ES2015 syntax. Whether you're looking to create a simple API or a full-fledged web application, this boilerplate offers a solid foundation that makes development efficient and intuitive.

The emphasis on a clean structure and configuration simplifies the process of managing your application's components. With features tailored to enhance productivity and maintainability, this boilerplate stands out for those looking to leverage Node.js for their projects.

Features

  • ES2015 Syntax: The boilerplate is built with ES2015 syntax, requiring Node version 4. This modern coding standard improves readability and ease of use.

  • rootRequire Function: This global function streamlines module imports, reducing path complexity and configuration hassles, especially beneficial for Windows users.

  • MVC Structure: Organized into controllers, models, views, and routes, this structure promotes clear separation of concerns, making it easy to navigate and manage application code.

  • Sequelize ORM: Chosen for its Promise-based syntax and rich documentation, Sequelize allows for easy model creation and database selection, supporting various database types like MySQL and PostgreSQL.

  • Jade Templating: The boilerplate utilizes Jade for its templating, but can easily switch to EJS by modifying the config, providing flexibility in view rendering.

  • Centralized Routes Management: With a dedicated Router.js file, routing is effectively managed, allowing for clean association between HTTP verbs and controller actions.

  • Static Assets Handling: The assets folder is pre-configured for stylesheets, JavaScripts, and images, ensuring that all static files are neatly organized and easily accessible.

  • Testing Framework: Built-in support for Mocha and Superagent facilitates robust testing of your application, helping ensure that functionality is reliable and performs as expected.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.