From 86ed29d82964203cf1f06220bb5c49bc84f63368 Mon Sep 17 00:00:00 2001 From: DeShuai Ma Date: Mon, 25 May 2015 17:31:12 +0800 Subject: [PATCH] Complete readme --- README.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index edd29eb..5a66f89 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,32 @@ node-echo ========= -node.js echo server, returns request data to response +# example: + +$ osadm new-project test + +$ osc process -f nodejs-template-stibuild.json | osc create -f - -n test + +$ osc get bc -n test +NAME TYPE SOURCE +nodejs-sample-build Source git://github.com/mdshuai/nodejs-example.git + +$ osc start-build nodejs-sample-build -n test + +$ osc get se -n test +NAME LABELS SELECTOR IP(S) PORT(S) +database template=application-template-stibuild name=database 172.30.99.105 5432/TCP +frontend template=application-template-stibuild name=frontend 172.30.39.105 8080/TCP + +$ curl 172.30.39.105:8080 +Hello, Get data from postgreql : +[ + { + "type": "nodejs", + "version": "0.10" + }, + { + "type": "postgresql", + "version": "9.2" + } +]