Example backend CRUD project using Servant.
See my CRUD umbrella project: typesafe-web-polyglot.
This (master) branch contains haskell implementation.
eta-jetty branch ports this code to eta-lang and runs in embedded jetty server.
- Servant Web API for my CRUD 'Thing' example.
- Servant server implementation uses STM map as backend for simplicity. The data is lost when server is restarted.
- API compiles to Elm. Code to do that is in api-to-elm folder (separate stack/cabal project, see separate README)
- resolve empty response incompatibility between generated Elm and Servant (haskell-servant/servant#69 ?)
- compile Api to swagger
- compile to a Haskell client
- compile to other languages?
- play more with Servant
- play with persistence (something new and more than STM)
stack build
stack exec crud-ex-backend-servant-exe
To run compiled Elm use: http://localhost:3000/elm
This will use servant served HTML page.
To run Elm in elm-reactor, clone crud-ex-frontend-elm)