Go to file
Alaudidae Lark 5979f25ad8 updated readme 2017-05-07 19:08:57 +05:30
.vscode added bill validation 2017-05-07 09:39:21 +05:30
app added a debug/release app 2017-05-06 18:52:55 +05:30
src updated readme 2017-05-07 19:08:57 +05:30
test initial version with basic model - todo implement logic 2017-05-06 18:05:00 +05:30
.directory initial version with basic model - todo implement logic 2017-05-06 18:05:00 +05:30
.gitignore initial version with basic model - todo implement logic 2017-05-06 18:05:00 +05:30
LICENSE initial version with basic model - todo implement logic 2017-05-06 18:05:00 +05:30
README.md updated readme 2017-05-07 19:08:57 +05:30
SPEC.md initial version with basic model - todo implement logic 2017-05-06 18:05:00 +05:30
Setup.hs initial version with basic model - todo implement logic 2017-05-06 18:05:00 +05:30
coupon-servant.cabal added a debug/release app 2017-05-06 18:52:55 +05:30
stack.yaml initial version with basic model - todo implement logic 2017-05-06 18:05:00 +05:30
swagger.json integrated a swagger json api endpoint 2017-05-06 18:07:09 +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