haskell-servant/example-servant-minimal

Name: example-servant-minimal

Owner: servant

Description: A minimal example for a REST-API-server written with servant and a test-suite using servant-client

Created: 2016-04-15 07:50:14.0

Updated: 2018-04-24 19:40:15.0

Pushed: 2017-04-23 20:41:40.0

Homepage: null

Size: 6

Language: Haskell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

This is a very minimal example of a project that uses

To set up the project and run the test-suite, do:

k setup
k test --fast

To execute the test-suite faster while developing, do:

d go-w .ghci .
k exec ghci test/Spec.hs

and then at the ghci prompt do:

n

to run the tests and


n

to reload the code (after making changes) and run the tests again.

To run the app, do:

k exec example-servant-minimal

Then you can query the server like this:

 localhost:3000/item

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.