O'Reilly logo

Programming Elm by Jeremy Fairbank

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required