An update to the "Super Rentals" app

I recently took some time to review and refactor the code for my elm-super-rentals app which I first talked about here.

Here’s the new structure of the app:

There was a lot of code cleanup and reorganization but the major updates were the following:

  1. I removed the NotFound route. There is a NotFound page but a NotFound route didn’t seem to make any sense and it led to an illegal state showing up in my Route.href function. What URL should Route.NotFound map to? Now, the question can’t even be asked.

  2. I started using http-server-spa for local development which I first encountered in the “Elm in Action” book. This means that when developing locally I can now jump to any URL in the app and my front-end routing will work.

  3. For production, I switched from GitHub pages to Netlify and got front-end routing working there as well. So now I can send you directly to this page, if I wanted.

  4. Finally, I tweaked the various widgets so that they can better serve as examples for writing reusable views.


This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.