Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.
/ receive-order Public archive

Haskell Tutorial using servant to build a simple JSON endpoint

License

Notifications You must be signed in to change notification settings

diogob/receive-order

Repository files navigation

receive-order

Create a HTTP endpoint to create multiple receive orders.

Quickstart

If you are using a macOS just type:

./setup.sh

This will install stack, some haskell tools, the IntelliJ IDEA CE and build the project with tests.

Requirements

Development Setup

After cloning the repo execute in the project root folder:

stack setup && stack build

Running the server

You just need to give the command a PostgreSQL connection string with the database to store the orders:

stack exec receive-order-api -- postgres://localhost/receive_order

The above command will listen on 8080 port by default, you can change this using the -p flag. For a complete help on the command try:

stack exec receive-order-api -- -h

About

Haskell Tutorial using servant to build a simple JSON endpoint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published