Just wanted to post links to version 1.0 feature parity in my new Hanami Application. This is a conversion of an existing Rails Application.
The basic approach I took was to generate a Hanami Application. Copy over all the rails system tests with the aim that they should all pass at some point in the future. Go through copy over small parts of the rails code to the correct location in Hanami and then convert it.
I took the approach of choosing a feature I could deliver in Hanami (Home page, user login, deployment to servers), not just converting all the models and then all the controllers. I found it useful to see something work completely in Hanami before moving on. I leaned heavily on the system specs to make sure everything was working at the end of the process.
This is my first attempt at a Hanami application, so I would be happy for any feedback.
Hopefully folks find this example of a real conversion helpful!
This is amazing. I see you archived the Rails codebase too. Does that mean you’ve made the switch over in production? If so, do you have any more insights from that experience?
If you ever want to submit a talk about your experience converting a Rails app to Hanami (or a blog post series, etc.) I’d be very happy to help with that. Rails-to-Hanami conversion is something we want to promote
Yeah! I want to echo @cllns’ sentiments and say that this is so wonderful! Thank you @carolync for your initiative here and for making this available to the world!
I’m definitely keen to hear more about your “lessons learned” from the experience, and whether there’s anything cool or interesting in the code you might like to draw attention to
@cllns Yes, the Hanami application is in production. We went live in early August. We have had no complaints from users and the entire team has been able to maintain the application.
@timriley I found it cool that my production servers could remain essentially the same. I would have to think a bit on the lessons learned. I did experiment with the conversion and found that it was much easier to generate the hanami app on the side vs trying to change the rails application in place. The hanami generators do some heavy lifting that is hard to replicate. I just stopped mid stream on that…
Also, If there was a way to fix the documentation search that would be super helpful for folks looking to make a conversion.
I’d be happy to help evangelize conversion, but with the current state of the government Princeton is cutting non essential budgets including travel. That said they are generous with my time and open source so if I can help I would like to. Maybe a guide section? Or a virtual code read? My demo conversion would make a neat workshop.