Starting point for Meteor applications.

Language: JavaScript


This is a starting point for Meteor-based applications. It includes some useful packages, organization techniques to ensure that your codebase is stays mantainable and easy to understand. It also contains a gulp-based coding standards sniffer to ensure code quality.

A very simple example of a meteor app built from this boilerplate is OnTask.


Here's a list of packages installed by default.

Iron Router

A router that works on the server and the browser.

Collection 2

Extends Mongo.Collection to provide support for specifying a schema and then validating against that schema when inserting and updating.

Collection Helpers

Sets up a transformation on your collections allowing for simple models, with an interface similar to template helpers.


Adds UI components and helpers to easily create basic forms with automatic insert and update events, and automatic reactive validation.


Roles-based authorization package for Meteor - compatible with built-in accounts package.


Brings sass to your meteor application using node-sass.

Core Packages

meteor-boilerplate adds these meteor core packages by default:

  • insecure
  • jquery
  • accounts-base
  • underscore

Deployment with Docker

This package includes a basic dockerfile for deploying built versions of your application. More instructions and development on this feature to come.

Coding Standards

This project contains multiple tools for enforcing coding standards and checking for errors within the codebase. The standards are defined in the .jscsrc and .jshintrc files in the project root.


  • Change directory to the root directory of the boilerplate (Not Meteor's root), like: cd /path/to/project
  • Run npm install to retrieve dependencies.


To check your local codebase, run gulp cs from a console in the project root. An error report, if any, will be generated in the console.

Folder Structure

The /client, /server, and /lib folders provide some basic app structure that I've found to be useful:

/docs - Contains all documentation for your application /src

  • /client
    • /styles - Contains all of your stylesheets.
      • app.scss - Empty sass file that should hold your application's styles.
    • /modules - Holds a folder for each application module. Each module folder should contain routes, event handles, UI components, and subscriptions.
      • /example
        • example.js - Example view file that defines a default route.
      • example.html - Example default template that the sample.js route yields.
    • /templates - Contains all of your less stylesheets.
      • app.html - Basic app html file with a default layout defined.
      • layoutMain.html - Default layout template.
      • header.html - Header template.
    • routes.js - Iron Router configuration file.
  • /lib
    • /collections - Folder that contains collection definitions.
      • example.js - Defines an example collection, with a schema and a helper.
  • /public - Contains all files served by applications.
    • /images - Contains all images served by applications.
  • /server/ - Server specific files.
    • /modules/ - Contains a directory for each module. Each module directory will have publication functions, allow/deny functions, and Meteor methods.
      • /example
        • example.js - Sample publication, allow/deny, and method functions.
    • /startup/ - Files containing scripts that should run on startup. For instance, a user.js file that creates a default admin user for your app if one doesn't already exist.
    • example.js - Sample startup function.

Project Statistics

Sourcerank 4
Repository Size 381 KB
Stars 95
Forks 15
Watchers 7
Open issues 2
Dependencies 5
Contributors 4
Tags 1
Last updated
Last pushed

Top Contributors See all

Patrick Coffey Fernando Mumbach Jon Peck Jeff Tomlinson

Recent Tags See all

v1.0.0 February 13, 2014

Something wrong with this page? Make a suggestion

Last synced: 2017-11-24 19:01:12 UTC

Login to resync this repository