Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 696 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 696 Bytes

Koi

A toy web framework for Carp

Warning

This is very much a proof of concept please don't use this for anything serious.

Examples

(load "https://github.com/TimDeve/[email protected]")

(use Koi)

(defn root-handler [req]
  (Res.send (HttpStatus.Ok)
            @"text/plain"
            @"Hello from Carp!"))

(defn routes []
  [(Route.init (HttpVerb.GET) @"/" root-handler)])

(defn main []
  (serve "localhost" 8080 (routes)))
make run-form-example
make run-json-api-example