Permalink
Browse files

Add a code sample to README

  • Loading branch information...
swlkr committed Aug 8, 2018
1 parent 1c11a25 commit b253903f0b84fcafdfe8953d347866054bd90b25
Showing with 15 additions and 1 deletion.
  1. +15 −1 README.md
View
@@ -2,7 +2,21 @@
## What is this?
Coast is a full stack web framework written in Clojure for small teams or solo developers. It uses a relational database and renders html on the server without javascript which allows you to ship your web applications faster.
Coast is a full stack web framework written in Clojure for small teams or solo developers. It uses a relational database and renders html on the server without javascript which allows you to ship your web applications faster and it looks like this
```clojure
(ns my-project
(:require [coast.zeta :as coast]))
(def routes [[:get "/" `home]])
(defn home [req]
[:h1 "You're coasting on clojure!"])
(def app (coast/app routes))
(coast/server app {:port 1337})
```
## Getting Started

0 comments on commit b253903

Please sign in to comment.