summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <adam@adambard.com>2014-09-06 10:28:58 +0200
committerAdam <adam@adambard.com>2014-09-06 10:28:58 +0200
commitc0d8a18b08d114dd0142a09f6787c7221b423802 (patch)
treee84f62e5cbda435dd0ac73e3c9b086266940b05a
parent94bdf4c9e58dd206babf4614d238a0c47ba2379d (diff)
Made beginning easier
-rw-r--r--compojure.html.markdown8
1 files changed, 5 insertions, 3 deletions
diff --git a/compojure.html.markdown b/compojure.html.markdown
index 1644dfb7..96555273 100644
--- a/compojure.html.markdown
+++ b/compojure.html.markdown
@@ -23,20 +23,22 @@ in Clojure with minimal effort:
(run-server myapp {:port 5000}))
```
-Create a project with [Leiningen](http://leiningen.org/):
+**Step 1:** Create a project with [Leiningen](http://leiningen.org/):
```
lein new myapp
```
-Add your dependencies:
+**Step 2:** Put the above code in `src/myapp/core.clj`
+
+**Step 3:** Add some dependencies to `project.clj`:
```
[compojure "1.1.8"]
[http-kit "2.1.16"]
```
-And run:
+**Step 4:** Run:
```
lein run -m myapp.core