Skip to content

Commit

Permalink
Fixed typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
danskarda committed Sep 29, 2012
1 parent f75e057 commit c4953df
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions demo/demo-1-jetty/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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`

Expand All @@ -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
-----------
Expand All @@ -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)`

0 comments on commit c4953df

Please sign in to comment.