Skip to content

neilshannon/atlanta-scala-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atlanta-scala-linkedin-microservice

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.

running the services

start local services with sbt:

$ sbt
> ~re-start

testing

Execute tests using test command:

$ sbt
> test

Execute tests with code coverage and report

$ sbt 
> clean coverage test coverageReport

build deployment assembly

$ sbt
> clean universal:packageBin

deploy to cloud foundry

$ cf push

cloud runtime configuration

environment variables

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

setting environment variables in CloudFoundry

cf set-env atlanta-scala-microservice neo4j-host localhost

About

A microservice using LinkedIn and Neo4J

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published