# Finatra Hello World HttpServer Example Application

A simple "hello world" HTTP example.

Note: All Finatra examples should be run from the base Finatra directory as they are defined as part 
of the root project.

Building
--------

For any branch that is not [Master](https://github.com/twitter/finatra/tree/master) or a tagged 
[release branch](https://github.com/twitter/finatra/releases) (or a branch based on one of those 
branches), see the [CONTRIBUTING.md](../../CONTRIBUTING.md#building-dependencies) documentation on 
building Finatra and its dependencies locally in order to run the examples.

Running
-------
```
[finatra] $ cd ../../
[finatra] $ ./sbt "project helloWorld" "run -http.port=:8888 -admin.port=:9990"
```
* Then browse to: [http://localhost:8888/hi?name=foo](http://localhost:8888/hi?name=foo)
* Or view the [twitter-server admin interface](https://twitter.github.io/twitter-server/Features.html#admin-http-interface): [http://localhost:9990/admin](http://localhost:9990/admin)
* Or build and run a deployable jar:
```
[finatra] $ ./sbt helloWorld/assembly
[finatra] $ java -jar examples/hello-world/target/scala-2.XX/hello-world-assembly-X.XX.X.jar -http.port=:8888 -admin.port=:9990
```

# Finatra Hello World HttpServer Example Application

A simple "hello world" HTTP example.

Note: All Finatra examples should be run from the base Finatra directory as they are defined as part 
of the root project.

Building
--------

For any branch that is not [Master](https://github.com/twitter/finatra/tree/master) or a tagged 
[release branch](https://github.com/twitter/finatra/releases) (or a branch based on one of those 
branches), see the [CONTRIBUTING.md](../../CONTRIBUTING.md#building-dependencies) documentation on 
building Finatra and its dependencies locally in order to run the examples.

Running
-------
```
[finatra] $ cd ../../
[finatra] $ ./sbt "project exampleHttpServer" "run -http.port=:8888 -admin.port=:9990"
```
* Then browse to: [http://localhost:8888/hi?name=foo](http://localhost:8888/hi?name=foo)
* Or view the [twitter-server admin interface](https://twitter.github.io/twitter-server/Features.html#admin-http-interface): [http://localhost:9990/admin](http://localhost:9990/admin)
* Or build and run a deployable jar:
```
[finatra] $ ./sbt exampleHttpServer/assembly
[finatra] $ java -jar examples/exampleHttpServer/target/scala-2.XX/hello-world-assembly-X.XX.X.jar -http.port=:8888 -admin.port=:9990
```

Fix project name reference in Readme.md
finatra: Fix project name reference in Readme.md

Problem

When running the command to build or run project describe in Readme project
reference helloWorld is outdated and does not corresponds to the on in
build.sbt.

Solution

Change project reference from helloWorld to exampleHttpServer

Signed-off-by: Yufan Gong <yufang@twitter.com>

JIRA Issues: CSL-8735

Differential Revision: https://phabricator.twitter.biz/D360342
