Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 589 Bytes

README.md

File metadata and controls

36 lines (29 loc) · 589 Bytes

scala-todolist

Functional Scala Todo-List using doobie, flyway, circe, akka-http, monix

Testing

$ docker-compose -f docker-compose-test.yml up
$ sbt test

Running locally

$ sbt run

Dockerized

Build a docker image:

$ sbt docker:publishLocal

Run a container:

$ docker run -d -e PG_HOST='docker.for.mac.localhost' \
 -e PG_PORT='5432' \
 -e PG_USER='dev' \
 -e PG_DATABASE_NAME='world' \
 -p 9000:9000 --restart unless-stopped --name todo radusw/todo-list:latest

Use:

$ docker logs todo --follow

$ curl http://localhost:9000/api/todos