Skip to content

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

License

Notifications You must be signed in to change notification settings

radusw/scala-todolist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 https://localhost:9000/api/todos