This repository provides different Haskell implementations for todobackend.
The todobackend-common
package
implements common functionality, such as the model and some utils.
Hosting sponsored by sloppy.io.
The running demos can be found at:
- todobackend-happstack.sloppy.zone
- todobackend-scotty.sloppy.zone
- todobackend-servant.sloppy.zone
- todobackend-snap.sloppy.zone
- todobackend-spock.sloppy.zone
- todobackend-yesod.sloppy.zone
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.
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
.