|
|
||
|---|---|---|
| .vscode | ||
| app | ||
| src | ||
| test | ||
| .directory | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| SPEC.md | ||
| Setup.hs | ||
| coupon-servant.cabal | ||
| stack.yaml | ||
| swagger.json | ||
README.md
coupon-servant
Setup
- put the postgres connection string in
Main.hs - run
stack buildthen - run
stack exec coupon-servant-exeto start the server
Testing
- run
docker pull swaggerapi/swagger-uito download swagger-ui container - run
docker run -d --name swui -e API_URL="http://localhost:3000/swagger.json" -p 5341:8080/tcp swaggerapi/swagger-ui - point your browser to swagger-ui