2016-04-15 11:18:12 +02:00
|
|
|
# Example Projects
|
|
|
|
|
|
|
|
- **[example-servant-minimal](https://github.com/haskell-servant/example-servant-minimal)**:
|
|
|
|
|
|
|
|
A minimal example for a web server written using **servant-server**,
|
|
|
|
including a test-suite using [**hspec**](http://hspec.github.io/) and
|
|
|
|
**servant-client**.
|
|
|
|
|
|
|
|
|
|
|
|
- **[stack-templates](https://github.com/commercialhaskell/stack-templates)**
|
|
|
|
|
|
|
|
Repository for templates for haskell projects, including some templates using
|
|
|
|
**servant**. These templates can be used with `stack new`.
|
2016-04-20 15:53:55 +02:00
|
|
|
|
2016-04-20 16:04:51 +02:00
|
|
|
- **[custom-monad](https://github.com/themoritz/diener)**:
|
2016-04-20 15:53:55 +02:00
|
|
|
|
2016-04-20 16:04:51 +02:00
|
|
|
A custom monad that can replace `IO` in servant applications. It adds among
|
2016-04-20 16:07:02 +02:00
|
|
|
other things logging functionality and a reader monad (for database connections).
|
2016-04-20 16:04:51 +02:00
|
|
|
A full usage example of servant/diener is also provided.
|
2016-06-07 14:56:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
- **[example-servant-elm](https://github.com/haskell-servant/example-servant-elm)**:
|
|
|
|
|
|
|
|
An example for a project consisting of
|
|
|
|
|
|
|
|
- a backend web server written using **servant-server**,
|
|
|
|
- a frontend written in [elm](http://elm-lang.org/) using
|
|
|
|
[servant-elm](https://github.com/mattjbray/servant-elm) to generate client
|
|
|
|
functions in elm for the API,
|
|
|
|
- test-suites for both the backend and the frontend.
|
|
|
|
|
2017-05-12 02:20:46 +02:00
|
|
|
- **[servant-purescript](https://github.com/eskimor/servant-purescript/tree/master/examples/central-counter)**:
|
|
|
|
|
|
|
|
An example consisting of
|
|
|
|
|
|
|
|
- a backend in uses `haskell-servant`
|
|
|
|
- a frontend written in [PureScript](http://www.purescript.org/) using
|
|
|
|
[servant-purescript](https://github.com/eskimor/servant-purescript) to generate
|
|
|
|
an API wrapper in PureScript to interface the web API with
|
|
|
|
|
2016-06-07 14:56:39 +02:00
|
|
|
|
|
|
|
- **[example-servant-persistent](https://github.com/haskell-servant/example-servant-persistent)**:
|
|
|
|
|
|
|
|
An example for a web server written with **servant-server** and
|
|
|
|
[persistent](https://www.stackage.org/package/persistent) for writing data
|
|
|
|
into a database.
|