Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

progressstack/akka-http-docker-minimal-seed

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

akka-http-docker-minimal-seed

Sample project showcasing some basic use cases for akka-http, as well as docker packaging via sbt-native-packager

Dockerize app

clone the project and run: $ sbt docker:publishLocal

Run container

After generating the container (step above), run the container:

$ docker run -dit -p 5000:5000 --name akka-minimal-seed akka-http-docker-minimal-seed:1.0

You will get a response like this:

$ docker run -dit -p 5000:5000 --name akka-minimal-seed akka-http-docker-minimal-seed:1.0
6c3ceda8b0a4dc67633c577bb57dd949e17afbc101fd1b190c2e67efba9c9b7f

Test app

Stop the container

To stop the container, run:

$ docker stop akka-minimal-seed


Several common use cases such as

  • Async Http calls to external services

  • How to convert your models to/from JSON and also validate input

  • How to structure your akka-http application

  • How to package your app with docker so you can run it on any platform or environment including e.g. AWS (EC2, Beanstalk, etc)

  • How to extract values from the body of an Http Response and format it nicely

  • How to deal with error conditions

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Scala 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.