Commit 50770ba3 authored by bcmpbell's avatar bcmpbell
Browse files

Removed testing instructions from index.html and put them in README.

parent fa5c1467
......@@ -25,7 +25,7 @@ How to deploy the marmot application
6. Setup the Reverse proxy on weblicht machine in Tübingen.
1. ssh to weblicht and `cd /data/shibsp/etc/httpd/conf.d`
2. create a conf file under `services` if it's served for both http and https, otherwise create it under `services/https`or `services/http`.( For applications which require their own VirtualHosts, follow the example of weblicht-shannon)
3. Reload apache from racher. Goto rancher and get inside the shibsp container and run
3. Reload apache from rancher. Goto rancher and get inside the shibsp container and run
```
httpd -k graceful
```
......@@ -40,8 +40,19 @@ How to upgrade
How to run and test the marmot application locally
---
1. Start application with `java -jar target/service-marmot-1.0-SNAPSHOT.jar server config.yml`
1. To check that your application is running enter url `http://localhost:8080`
use the provided input file at service-marmot/src/main/resources/input.xml
Run curl:
curl -H 'content-type: text/tcf+xml' --data-binary @input.xml -X POST `http://localhost:8080/service-marmot/annotate/marmot/stream`
Or:
curl -H 'content-type: text/plain' --data-binary @input.txt -X POST `http://localhost:8080/service-marmot/annotate/marmot/bytes`
Or wget:
wget --post-file=input.xml --header='Content-Type: text/tcf+xml' `http://localhost:8080/service-marmot/annotate/marmot/stream`
Or:
wget --post-file=input.txt --header='Content-Type: text/plain' `http://localhost:8080/service-marmot/annotate/marmot/bytes`
Health Check
---
......
......@@ -11,28 +11,6 @@
The service processes POST requests containing TCF data with tokens.
</p>
<br/>
<p>You can test the morphology analysis service using curl or wget as follows:</p>
<ul>
<li>download the provided <a href="input.xml">input file</a></li>
<li>Run curl:
<p>
<code> curl -H 'content-type: text/tcf+xml' --data-binary @input.xml -X POST <span class="url"></span>annotate/marmot/stream</code>
</p>
Or:
<p>
<code> curl -H 'content-type: text/tcf+xml' --data-binary @input.xml -X POST <span class="url"></span>annotate/marmot/bytes</code>
</p>
</li>
<li>Or wget:
<p>
<code> wget --post-file=input.xml --header='Content-Type: text/tcf+xml' <span class="url"></span>annotate/marmot/stream</code>
</p>
Or:
<p>
<code> wget --post-file=input.xml --header='Content-Type: text/tcf+xml' <span class="url"></span>annotate/marmot/bytes</code>
</p>
</li>
</ul>
<script type="text/javascript">
var elemList = document.getElementsByClassName("url");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment