Compojure Demystified with an example – Part 1
In this part, I am going to talk about what application we are going to implement.
Lets build a simple address book web application using compojure. This will be a RESTFUL application. As we go through this example we will see some interesting aspects of compojure.
Functionalities
- Add / Edit / Delete Address book
- View All Addresses
- View a single Address
Domain
Address
- Name
- Street1
- Street2
- City
- Country
- ZipCode
REST interfaces we will implement
- View All Addresses – GET – http://localhost:8080/addresses
- View single address – GET – http://localhost:8080/addresses/:id
- Add Address - POST – http://localhost:8080/addresses
- Edit Address - PUT – http://localhost:8080/addresses/:id
- Delete Address – DELETE – http://localhost:8080/addresses/:id
Next part 2 we will setup our base project with compojure.

Hi,
I am looking
g at your project. It looks interesting. I downloaded part 1 and ran lein deps.
How do i run it to see what it is doing.?
I am trying to learn Clojure.
Jim Smiley
January 15, 2012 at 9:14 pm