A Yeoman generator for Metaproject applications.
We're getting ready for a stable release.
To run this generator, you'll need NPM, Yeoman and Bower installed
$ npm install -g yo
$ npm install -g bower
To install generator-metaproject from npm, run:
$ npm install -g generator-metaproject
Finally, initiate the generator on app_root
:
$ cd /path/to/app_root
$ yo metaproject
[app root]
`- app/
`- core/
`- modules/
`- base/
`- index.js
`- models.js
`- main.js
`- script.js
`- style.css
`- index.html
.bowerrc
.gitignore
.htaccess
bower.json
-
The
app/
directory stores the public application files.app/core
holds the core frameworkmain.js
bootstraps the applicationscript.js
Additional scriptsstyle.css
Additional stylesindex.html
Main app structure
-
Every module is self contained and stored under
app/modules
- The
base
module is defined inapp/modules/base/module
app/modules/index.js
holds the modules url mappingapp/modules/models.js
defines the shared Data Models used by the application.
- The
Modules are framework-agnostic. The architecture, provided by BoilerplateJS, demonstrates the best practices for integrating your libraries for large scale product development.
You can add additional modules to your application using the module
subgenerator
yo metaproject:module name
Creates a default module with separate viewmodel.js
and submodule
support.
yo metaproject:module name --simple
Creates a simple module with inline viewModel
and a single endpoint.
For detailed examples, please check the Skeleton reference Application and the Building Skeleton post