Skip to content

Instantly share code, notes, and snippets.

@jodosha
Last active August 29, 2015 14:01
Show Gist options
  • Save jodosha/ade11746700fe23cd4f2 to your computer and use it in GitHub Desktop.
Save jodosha/ade11746700fe23cd4f2 to your computer and use it in GitHub Desktop.
Lotus application structure
# 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/
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
@vdmgolub
Copy link

Where should adapters go?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment