This project demonstrates using Akka HTTP, the Google People API, the Neo4J Graph Database, and Scala to build a microservice. The microservice will pull the connection graph for each user in the room from Google+ and show how all the people who are logged in connected to one another.
start local services with sbt:
$ sbt
> ~re-start
Execute tests using test
command:
$ sbt
> test
Execute tests with code coverage and report
$ sbt
> clean coverage test coverageReport
$ sbt
> clean universal:packageBin
$ cf push
variable name | variable value | default |
---|---|---|
neo4j-host | host for neo4j server | 0.0.0.0 |
neo4j-webPort | REST API port for neo4j | 7474 |
neo4j-boltPort | binary Bolt port for neo4j | 7687 |
neo4j-username | neo4j username | neo4j |
neo4j-password | neo4j password | blank |
http-host | http host for microservice | 0.0.0.0 |
http-port | http port for microservice | 9000 |
cf set-env atlanta-scala-microservice neo4j-host localhost