git.iko.soy/typeable/servant
on v0.14.1 help sign in
typeable/servant/doc/examples.md
50 lines 2.2 kB history raw
1# Example Projects
3- **[example-servant-minimal](https://github.com/haskell-servant/example-servant-minimal)**:
5 A minimal example for a web server written using **servant-server**,
6 including a test-suite using [**hspec**](http://hspec.github.io/) and
7 **servant-client**.
9- **[servant-examples](https://github.com/sras/servant-examples)**:
11 Similar to [the cookbook](https://haskell-servant.readthedocs.io/en/latest/cookbook/index.html) but
12 with no explanations, for developers who just want to look at code examples to find out how to do X or Y
13 with servant.
15- **[stack-templates](https://github.com/commercialhaskell/stack-templates)**
17 Repository for templates for haskell projects, including some templates using
18 **servant**. These templates can be used with `stack new`.
20- **[custom-monad](https://github.com/themoritz/diener)**:
22 A custom monad that can replace `IO` in servant applications. It adds among
23 other things logging functionality and a reader monad (for database connections).
24 A full usage example of servant/diener is also provided.
26- **[example-servant-elm](https://github.com/haskell-servant/example-servant-elm)**:
28 An example for a project consisting of
30 - a backend web server written using **servant-server**,
31 - a frontend written in [elm](http://elm-lang.org/) using
32 [servant-elm](https://github.com/mattjbray/servant-elm) to generate client
33 functions in elm for the API,
34 - test-suites for both the backend and the frontend.
36- **[servant-purescript](https://github.com/eskimor/servant-purescript/tree/master/examples/central-counter)**:
38 An example consisting of
40 - a backend in uses `haskell-servant`
41 - a frontend written in [PureScript](http://www.purescript.org/) using
42 [servant-purescript](https://github.com/eskimor/servant-purescript) to generate
43 an API wrapper in PureScript to interface the web API with
46- **[example-servant-persistent](https://github.com/haskell-servant/example-servant-persistent)**:
48 An example for a web server written with **servant-server** and
49 [persistent](https://www.stackage.org/package/persistent) for writing data
50 into a database.