Last active
August 29, 2015 14:01
-
-
Save jodosha/ade11746700fe23cd4f2 to your computer and use it in GitHub Desktop.
Lotus application structure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/ | |
# controllers/ | |
# dashboard_controller.rb DashboardController::Index or Controllers::Dashboard::Index | |
# identity_controller.rb IdentityController::Edit|Update or Controllers::Identity::Edit|Update | |
# sessions_controller.rb SessionsController::New|Create|Destroy or Controllers::Sessions::New|Create|Destroy | |
# entities/ | |
# account.rb Account | |
# identity.rb Identity | |
# person.rb Person | |
# interactors/ | |
# login.rb Login | |
# logout.rb Logout | |
# show_dashboard.rb ShowDashboard | |
# signup.rb Signup | |
# update_identity.rb UpdateIdentity | |
# models/ # optional | |
# location.rb Location | |
# presenters/ # optional | |
# person_presenter.rb PersonPresenter | |
# repositories/ | |
# account_repository.rb AccountRepository | |
# identity_repository.rb IdentityRepository | |
# person_repository.rb PersonRepository | |
# templates/ | |
# dashboard/ | |
# index.html.erb | |
# sessions/ | |
# new.html.erb | |
# identity/ | |
# edit.html.erb | |
# views/ | |
# dashboard/ | |
# index.rb Views::Dashboard::Index | |
# sessions/ | |
# new.rb Views::Dashboard::Index | |
# identity/ | |
# edit.rb Views::Identity::Edit | |
# config/ | |
# routes.rb | |
# mapping.rb | |
# application.rb | |
# lib/ | |
# spec/ | |
# spec_helper.rb | |
# controllers/ | |
# entities/ | |
# interactors/ | |
# features/ # cucumber replacement | |
# models/ # optional | |
# presenters/ # optional | |
# repositories/ | |
# views/ | |
# tmp/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project | |
├── boot.rb | |
├── config.ru | |
├── Gemfile | |
├── Rakefile | |
├── apps | |
│ ├── blog | |
│ │ ├── application.rb | |
│ │ ├── mapping.rb | |
│ │ ├── routes.rb | |
│ │ ├── controllers | |
│ │ ├── repositories | |
│ │ ├── templates | |
│ │ └── views | |
│ └── blog.rb | |
├── lib | |
│ ├── application.rb | |
│ ├── entities | |
│ │ ├── comment.rb | |
│ │ └── post.rb | |
│ └── lotus | |
│ └── application.rb | |
└── spec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where should adapters go?