Build a Skeleton SPA

In this book’s beginning chapters, you built a nifty Picshare application that displayed a feed of photos. We’re welcoming it back for one last hurrah. You will convert Picshare into a single-page application. By the end of this chapter, your Picshare application will display a public feed of photos, an individual user’s feed of photos, and an account page.

You’ll slowly work toward the final result. First, you need to connect some SPA plumbing. In this section, you will create an SPA skeleton. You will use the elm/url package to convert the current URL into a route. Then, you will access the current URL with a new function from the Browser module and store page state with the Elm Architecture. Finally, you will display ...

Get Programming Elm now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.