Akka HTTP REST API

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.

Database creation

createdb rest_api_app -U postgres

Database schema (http://flywaydb.org/)

sbt flywayMigrate

Running

Before starting anything make sure you have PostgreSQL and Redis up and running.

Usage

Start services with sbt:

$ sbt
> run

Testing

Before executing tests start redis on port 6380. Execute tests using test command:

$ sbt
> test