- A simple "hello world" example.
- Note: Finatra examples are built in different ways depending on the branch you are in:
Run sbt from the top-level Finatra directory, e.g.
$ cd ../../
$ sbt helloWorld/run
- Then browse to: http://localhost:8888/hi?name=foo
- Or view the twitter-server admin interface: http://localhost:9990/admin
- Or build and run a deployable jar:
$ sbt helloWorld/assembly
$ java -jar examples/hello-world/target/scala-2.11/finatra-hello-world-assembly-2.x.x-SNAPSHOT.jar -http.port=:8888 -admin.port=:9990
If you're in a tagged release branch (e.g. v2.1.0)
###SBT### Run sbt from this project's directory, e.g.
$ sbt run
Or build and run a deployable jar:
$ sbt assembly
$ java -jar target/scala-2.11/finatra-hello-world-assembly-2.1.0.jar -http.port=:8888 -admin.port=:9990
###Maven###
mvn clean install