This project demonstrates Akka HTTP, Reactive Slick, PostgreSQL and Redis to build REST API with token based authentication. It can be used as a skeleton for typical REST API apps.
createdb rest_api_app -U postgres
Database schema (http://flywaydb.org/)
sbt flywayMigrate
Before starting anything make sure you have PostgreSQL and Redis up and running.
Start services with sbt:
$ sbt
> run
Before executing tests start redis on port 6380.
Execute tests using test
command:
$ sbt
> test