eckyputrady / haskell-scotty-realworld-example-app

Exemplary real world backend API built with Haskell/Scotty https://realworld.io
MIT License
210 stars 31 forks source link

Initial ideas with Docker compose #6

Closed adomokos closed 4 years ago

adomokos commented 6 years ago

🚧 NOT yet ready for merge 🚧 I wanted to submit my ideas before I spend more time on a PR.

First of all: thank you for creating this project. It will help many people looking at how to do REST-like services with authentication.

The intent of this change is to make it super easy for people to get started. I'd like to propose adding the docker compose file, as it will set up a Postgres server in Docker and it's port 5432 will be exposed to the host OS and can talk to it like Postgres would be running on the host.

Also, I'd like to add a Makefile to the project. That could work as a collection of scripts, providing a good intro to the user of what's possible. It even uses a little help menu:

make-help

I think this Makefile could be used both locally, and on the Travis CI build server as well.

Let me know if you'd consider merging something like this and I'll polish it up a bit more.