Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhedev/todobackend-haskell
Todobackend implementations in Haskell using various frameworks
https://github.com/jhedev/todobackend-haskell
haskell todo-backend
Last synced: about 2 months ago
JSON representation
Todobackend implementations in Haskell using various frameworks
- Host: GitHub
- URL: https://github.com/jhedev/todobackend-haskell
- Owner: jhedev
- Created: 2015-07-28T12:24:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-01T13:51:48.000Z (about 2 years ago)
- Last Synced: 2023-07-31T23:33:52.415Z (over 1 year ago)
- Topics: haskell, todo-backend
- Language: Haskell
- Homepage:
- Size: 45.9 KB
- Stars: 39
- Watchers: 4
- Forks: 10
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# todobackend-haskell
[![build status](https://circleci.com/gh/jhedev/todobackend-haskell.svg?style=shield)](https://circleci.com/gh/jhedev/todobackend-haskell/tree/master)
This repository provides different Haskell implementations for [todobackend](http://www.todobackend.com/).
The [`todobackend-common`](https://github.com/jhedev/todobackend-haskell/tree/master/todobackend-common) package
implements common functionality, such as the model and some utils.### Demos
Hosting sponsored by **[sloppy.io](https://sloppy.io)**.
The running demos can be found at:
* [todobackend-happstack.sloppy.zone](https://todobackend-happstack.sloppy.zone)
* [todobackend-scotty.sloppy.zone](https://todobackend-scotty.sloppy.zone)
* [todobackend-servant.sloppy.zone](https://todobackend-servant.sloppy.zone)
* [todobackend-snap.sloppy.zone](https://todobackend-snap.sloppy.zone)
* [todobackend-spock.sloppy.zone](https://todobackend-spock.sloppy.zone)
* [todobackend-yesod.sloppy.zone](https://todobackend-yesod.sloppy.zone)### Building and running locally
Make sure you have [`stack`](https://github.com/commercialhaskell/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`.