Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ktoso/example-akka-http


https://github.com/ktoso/example-akka-http

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

Akka HTTP example using Maven and Scala
=======================================

This is an example app showing how to use Akka HTTP with Maven and Scala (and ScalaTest).

Building docker container
-------------------------

Simply do `sbt docker:publishLocal`

Running
-------

You can run this example using

```
$ mvn exec:java
```

Which will run the `com.example.TestServer` application which binds the HTTP server to port 8080.

Testing
-------

Testing is as simple as you'd expect it to be - simply run `mvn test` to run the ScalaTest tests.

Reference docs
--------------

For detailed documentation about Akka HTTP refer to its [reference documentation](http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0/scala.html).

And you may want to read about [testing using ScalaTest](www.scalatest.org/user_guide/using_matchers).

License
-------
Apache 2.0

Konrad 'ktoso' Malawski