From 6ffeabb60012ca465c41b43a1981558d44b51da0 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 13 Apr 2016 11:50:51 +0800 Subject: [PATCH] [ci skip] move docker section to bottom. Signed-off-by: Bo-Yi Wu --- README.md | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index bf00fc6..0c52bb2 100644 --- a/README.md +++ b/README.md @@ -104,23 +104,6 @@ Test status of api server using [httpie](https://github.com/jkbrzt/httpie) tool: $ http -v --verify=no --json GET https://localhost:8088/api/status ``` -![statue screenshot](screenshot/status.png) - -## Run gopush in Docker - -Set up `gopush` in the cloud in under 5 minutes with zero knowledge of Golang or Linux shell using our [gopush Docker image](https://hub.docker.com/r/appleboy/gopush/). - -```bash -$ docker pull appleboy/gopush -$ docker run -name gopush -p 80:8088 appleboy/gopush -``` - -Testing your gopush server. - -```bash -$ http -v --verify=no --json GET http://your.docker.host/api/status -``` - ## Web API Gopush support the following API. @@ -183,6 +166,7 @@ Send multiple notifications as below: } ``` +See more example about [iOS](#ios-example) or [Android](#android-example). ### Request body @@ -357,6 +341,23 @@ Success response: } ``` +## Run gopush in Docker + +Set up `gopush` in the cloud in under 5 minutes with zero knowledge of Golang or Linux shell using our [gopush Docker image](https://hub.docker.com/r/appleboy/gopush/). + +```bash +$ docker pull appleboy/gopush +$ docker run -name gopush -p 80:8088 appleboy/gopush +``` + +Testing your gopush server. + +```bash +$ http -v --verify=no --json GET http://your.docker.host/api/status +``` + +![statue screenshot](screenshot/status.png) + ## License Copyright 2016 Bo-Yi Wu [@appleboy](https://twitter.com/appleboy).