Create a HTTP endpoint to create multiple receive orders.
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.
- Haskell stack tool (for development only)
After cloning the repo execute in the project root folder:
stack setup && stack build
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