7.1

Single-Page Apps

All apps we’ve built so far in this book only focus on accomplishing a single task. It’s time for us to learn how to build more complex Elm apps. In this chapter, we’ll do just that by adding more features to the DecodingJson app we built in chapter 6.

We’ll methodically refactor the code in DecodingJson.elm to a more flexible structure that will allow us to add new features and modify the existing ones with ease. We’ll also learn how to send the POST, PATCH, and DELETE HTTP requests to a server so that we can create, update, and delete posts respectively.

By the end of this chapter, we’ll have built a full-fledged Elm app for managing posts that includes a robust mechanism for navigating to different parts of the app.