This is a meta-repo that tracks all the templates that Mozilla is offering for Open Web Apps. Check out the README of each template for usage instructions.
The following templates are available:
mortar-app-stub: a blank template that comes only with the basic things required to get started
mortar-game-stub: a minimal web game template that handles input and a render loop
mortar-list-detail: comes with a layouts library and sets up a list-detail layout for you
mortar-tab-view, which is similar to
mortar-list-detailbut the initial layout has tabs at the button which let you switch between screens.
You can view more documentation here.
You can simply git clone any of the above templates, or use volo to create an app from one of them. If you have node installed, simply run
npm install -g volo to get volo. Examples:
- Using git:
git clone <template-github-url> myapp
- Using volo:
volo create myapp mozilla/<template-name>
Each template has documentation in its README specific to what it provides, but there are a few things that all of them provide.
All of them come with an initial project structure, a volo configuration file, initial css and js files, require.js, a basic manifest.webapp, and more. These are all very useful for developing webapps.