Chapter 8Picture Gallery

In this chapter we’ll bring together all the concepts you’ve learned thus far by building a picture gallery application. We’ll write the application in the style of a single-page application (SPA).

Traditional applications rely on the server both to handle the business logic and to render the HTML for the UI. This can easily lead to tight coupling between the client and the server components. It also requires the server to do additional work that can be handled by the client instead.

Single-page applications rely on the client to handle all the presentation logic. The client typically communicates with the server using a RESTful API, thus providing a clear separation between client and server responsibilities. ...

Get Web Development with Clojure, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.