/todobackend-haskell

Todobackend implementations in Haskell using various frameworks

Primary LanguageHaskell

todobackend-haskell

build status

This repository provides different Haskell implementations for todobackend.

The todobackend-common package implements common functionality, such as the model and some utils.

Demos

Hosting sponsored by sloppy.io.

The running demos can be found at:

Building and running locally

Make sure you have stack installed.

To build and run todobackend-scotty execute the following:

stack build todobackend-scotty # This will take some time
PORT=3000 URL=http://localhost:3000 stack exec todobackend-scotty

Similar for the other implementations.

Docker images

To run the docker container of the scotty implementation:

docker run --rm -it -p 3000:3000 -e URL=http://localhost:3000 jhedev/todobackend-haskell:scotty

The application is now running on port 3000. For any other implementation just replace scotty with servant, snap, spock or yesod.