Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Key Directory Structure

cristen jones edited this page Jun 17, 2016 · 3 revisions

This is a quick rundown of the key directories in Bonnie.

Directory Description
/app Rails application. Most of the code is here.
/app/assets All frontend code resides here.
/app/assets/javascripts Thorax application structure. All JS code is here.
/app/assets/javascripts/models Thorax model classes defined here.
/app/assets/javascripts/templates Handlebars templates.
/app/assets/javascripts/views Thorax view classes defined here.
/app/assets/stylesheets Stylesheets in .less format.
/app/controllers Rails controllers.
/app/models Mongoid model for the Bonnie User resides here.
/app/views Rails views.
/config Rails application configuration.
/config/initializers Initializers for various gems Bonnie uses.
/db
/deployment Docs for how to deploy.
/doc Bonnie user guide and it's assets.
/lib Additional code. Backend calculator and patient export reside here.
/lib/ext Mongoid models for patients (Record), value sets and other pieces.
/lib/tasks Rake tasks for doing operations on bonnie. Not tests.
/log Log files are stored here.
/public Directory of additional static files hosted by the app. User guide PDF is hosted from here.
/script Rails start up script.
/spec/javascripts Javascript unit tests. Makes use of Jasmine.
/test Rails unit tests.
/test/fixtures Fixtures (assets, measures, etc) for unit tests to use.
/test/functional Functional unit tests for rails controllers.
/test/unit Unit tests for other rails code.
/testplan Manual testplan steps and assets.
/vendor Bower obtained js/css libraries stored here. DO NOT EDIT. Use bower to update libraries.