Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed typos.

  • Loading branch information...
commit c4953dfb15aa699ab10640fec6fc680405e22374 1 parent f75e057
@danskarda danskarda authored
Showing with 10 additions and 7 deletions.
  1. +10 −7 demo/demo-1-jetty/README.md
View
17 demo/demo-1-jetty/README.md
@@ -1,10 +1,10 @@
-# demo 1
+# Demo 1
Demonstrates very basic ring and jetty usage. [core.clj](src/demo/core.clj)
has only two functions: hello-world and -main.
--main executes jetty server - and there are only two parameters - function
-which handles any request and configuration map.
+Function -main launches jetty server - and there are only two
+parameters: function which handles any request and configuration map.
Handler function accepts one argument (request) which returns result map
(includes keys like :status, :body etc). If you expected complex configuration
@@ -21,7 +21,7 @@ More on this in demo 2.
leiningen2
-------------
-We executed
+To start with our project, we executed leiningen command:
`lein new demo`
@@ -31,7 +31,7 @@ Command created project.clj and standard file structure:
- [.gitignore](.gitignore) file
- [doc/](doc/) directory
- Basic [src/demo/core.clj](src/demo/core.clj)
-- [test/][test/] directory
+- [test/](test/) directory
project.clj
-----------
@@ -40,10 +40,13 @@ File project.clj describes the project. We added dependencies on ring (and jetty
Execution
---------
+To execute our example we can run
+
`lein run`
or
-`lein repl`
-
+`lein repl
+> (use 'demo.core)
+> (-main)`
Please sign in to comment.
Something went wrong with that request. Please try again.