Go to file
Alaudidae Lark 201b61eecb added license from github 2017-05-07 19:25:44 +05:30
.vscode added license from github 2017-05-07 19:25:44 +05:30
app added license from github 2017-05-07 19:25:44 +05:30
src added license from github 2017-05-07 19:25:44 +05:30
test added license from github 2017-05-07 19:25:44 +05:30
.directory added license from github 2017-05-07 19:25:44 +05:30
.gitignore added license from github 2017-05-07 19:25:44 +05:30
LICENSE added license from github 2017-05-07 19:25:44 +05:30
README.md added license from github 2017-05-07 19:25:44 +05:30
SPEC.md added license from github 2017-05-07 19:25:44 +05:30
Setup.hs added license from github 2017-05-07 19:25:44 +05:30
coupon-servant.cabal added license from github 2017-05-07 19:25:44 +05:30
stack.yaml added license from github 2017-05-07 19:25:44 +05:30
swagger.json added license from github 2017-05-07 19:25:44 +05:30

README.md

coupon-servant

Setup

  • put the postgres connection string in Main.hs
  • run stack build then
  • run stack exec coupon-servant-exe to start the server

Testing

  • run docker pull swaggerapi/swagger-ui to 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