| Start |
|---|
| About Hanami Besides Hanami be a lightweight and fast framework one of the points that most call attention is the Clean Architecture concept where shows to us that the framework is not our application as Robert Martin said before. Hanami arquitecture design offer to us the use of Container, in each Container we have our application independently of the framework. This means that we can grab our code and put it into a Rails framework for example. Hanami is a MVC Framework ? The MVC's frameworks idea is to build one structure following the Model -> Controller -> View. Hanami follows the Model | Controller -> View -> Template. The result is an application more uncopled, following SOLID principles, and much cleaner. - Important links. Hanami http://hanamirb.org/ (opens new window) Robert Martin - Clean Arquitecture https://www.youtube.com/watch?v=WpkDN78P884 (opens new window) Clean Arquitecture https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html (opens new window) SOLID Principles http://practicingruby.com/articles/solid-design-principles (opens new window) |
How to install Hanami?
Obs. By default Hanami sets Minitest (opens new window) as testing framework. This will create a hanami application called myapp in a myapp directory and install the gem dependencies that are already mentioned in Gemfile using bundle install. To switch to this directory, use the cd command, which stands for change directory. The myapp directory has a number of auto-generated files and folders that make up the structure of a Hanami application. Following is a list of files and folders that are created by default: **lib** contains our business logic and domain model, including entities and repositories.
Hanami gem https://github.com/hanami/hanami (opens new window) Hanami official Getting Started http://hanamirb.org/guides/getting-started/ (opens new window) |
How to start the server? |
Read Article
https://develop.horje.com/learn/1434/reference