• Stars
    star
    227
  • Rank 175,900 (Top 4 %)
  • Language
    JavaScript
  • Created about 11 years ago
  • Updated almost 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A starter template for Meteor, using IronRouter

Void

A starter boilerplate app template for Meteor using IronRouter.

Void is based on Telescope (an open-source social news app) and is brought to you by the Discover Meteor team.

Installation

If you already have Meteor and Meteorite, Void is ready to go. Just clone it locally, run it with mrt, and start coding!

If not, here are the full instructions:

curl https://install.meteor.com | /bin/sh
npm install -g meteorite
git clone https://github.com/SachaG/Void.git myApp
cd myApp
mrt

Features

  • Client-side routing
  • Publications/subscriptions
  • Basic permissions
  • Common templates

Principles

Void adopts a modular approach, where code is broken down in different files rather than all kept in one place. It also uses the โ€œtemplate/mapperโ€ pattern, where the item.html template has a similarly named item.js JavaScript file that holds its helper code.

Void uses the Items collection as an example, but you would probably replace this with your own collection name (Posts, Sales, Projects, etc.) and change the file and variables names accordingly.

File Structure

  • client
    • CSS
    • helpers
      • handlebars.js
      • router.js
    • views
      • common
        • footer.html
        • header.html
        • layout.html
        • loading.html
        • notFound.html
      • items
        • item.html
        • item.js
        • items.html
      • pages
        • homepage.html
    • main.html
    • main.js
  • collections
    • items.js
  • lib
    • helpers.js
    • permissions.js
  • packages
    • iron-router
    • sample-package
  • public
  • server
    • fixtures.js
    • publications.js

Other Boilerplates