Skip to content

LessGoudarzi/model-contrib

 
 

Repository files navigation

model-contrib

The place for open source contributions built with model.js. Any and all contributions are welcome.

Check out the project home page for a listing of components and examples.

Contributing

Pull requests welcome! Add modules under modules and examples under examples. Please put your name and the date (or month) of authorship at the bottom of your example README.md file for examples, and at the end of the documentation comments before the code begins for modules.

To create a new example, make a copy of the starter example directory under examples. Feel free to add more top-level Bower dependencies as needed.

For discussion, please reply to the ModelJS thread on the D3 Mailing List, or email me directly at curran.kelleher@gmail.com . I would like to make this a collaborative effort to pool Open Source community resources for reusable visualizations, please let me know if there are any difficulties in contributing.

Workflow

The script server.js implements a simple static file server for development use. It is convenient to serve the examples locally during development.

After adding an example or module, you can update the home page Angular app and screenshots with the following steps:

  • run gulp, which will run the code through JSHint and create the Docco documentation for all examples (under docs).
  • run node buildIndex.js, which creates index.json. This data file is the database that powers the project home page, which you can access locally at http://localhost:8000/#/.
  • run node generateThumbnails.js to render a thumbnail of each example and puts it under the thumbnails directory.
  • refresh http://localhost:8000/#/ to check that there are no errors in the rendered visualizations.
  • For modules, click on the module entry to check if the Docco documentation for your module looks good.
  • For examples, click on the example entry to check if the example viewer (which renders README.md into HTML) presents the example well.

Improvements to the Angular side of the example code viewer or home page are also welcome.

By Curran Kelleher August 2014

About

The place for open source contributions built with ModelJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published