Skip to content

kayvank/servant-web

Repository files navigation

servant-web

A simple servant http server

Prerequisite

building locally using stack

stack set up
stack build 

For continues development and quick feedback:

stack build --file-watch

Publish the docker-image

To publish your image to docker hub:

make

Prerequisite:

Execution

Project may run with stack run or as a docker image, and will require postgres. To bring postgres up:

./db/docker-compose up -d
docker ps ## to get the process id
docker inspect {process-id} 

Execute docker image locally

To execute to image locally:

docker run -p3000:3000 servant-web:latest

To test the deployment:

docker inspect `docker images  | awdk '{printf $3}'` | grep IP
curl -v <IP>:3000/item 

References

servant-wpg 2015 paper

docker-image

circlci build

About

Haskell servant http server demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published