Skip to content

Archetype for micro services development based on scala, sbt, spray and akka.

Notifications You must be signed in to change notification settings

jesusjavierdediego/sbt-akka-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservice Archetype A

Microservice archetype with Scala, Akka, Spray and Camel/ActiveMQ. Based on Typesafe Activator templates.

Project contains:

  • Easy to test Akka system with a sample actor
  • Spray-based RESTful API with full CORS support
  • Actor and API sample tests
  • Camel/ActiveMQ extension for a handy integration with Akka system
  • Typesafe config with different profiles for production and testing environments
  • Logback-SLF4J logging
  • Sbt assembly plugin for JAR-file creation with custom merge strategy

API structure

POST /api/example1/test                           (Example1Routes)
GET  /api/example1/done                           (Example1Routes)
GET  /api/example1/service/{serviceID}/{command}  (Example1Routes)
GET  /api/example2                                (Example2Routes)

Build & Run

To build & run:

sbt assembly

And then run JAR as usual, something like this:

Unix

nohup java -jar target/scala-2.10/akka-microservice-assembly-1.0.jar 1>/dev/null 2>&1 &

Windows

java -jar target/scala-2.10/akka-microservice-assembly-1.0.jar 1>/dev/null

Pending Points

1-Replace SBT for Gradle in order to include a common build system for several languages.

2-Include Spring Boot

3-Include Websockets support for Akka

About

Archetype for micro services development based on scala, sbt, spray and akka.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published