Skip to content

Project demonstrating Akka HTTP, Reactive Slick, PostgreSQL and Redis for REST API

License

Notifications You must be signed in to change notification settings

piobab/akka-http-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Project demonstrating Akka HTTP, Reactive Slick, PostgreSQL and Redis for REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages