docs: add install from source section.
This commit is contained in:
parent
4d34ccecf0
commit
fe2159c7b8
20
README.md
20
README.md
|
@ -20,6 +20,7 @@ A push notification micro server using [Gin](https://github.com/gin-gonic/gin) f
|
||||||
- [Memory Usage](#memory-usage)
|
- [Memory Usage](#memory-usage)
|
||||||
- [Basic Usage](#basic-usage)
|
- [Basic Usage](#basic-usage)
|
||||||
- [Download a binary](#download-a-binary)
|
- [Download a binary](#download-a-binary)
|
||||||
|
- [Install from source](#install-from-source)
|
||||||
- [Command Usage](#command-usage)
|
- [Command Usage](#command-usage)
|
||||||
- [Send Android notification](#send-android-notification)
|
- [Send Android notification](#send-android-notification)
|
||||||
- [Send iOS notification](#send-ios-notification)
|
- [Send iOS notification](#send-ios-notification)
|
||||||
|
@ -200,6 +201,25 @@ On macOS, use Homebrew.
|
||||||
$ brew install --HEAD https://github.com/appleboy/gorush/raw/master/HomebrewFormula/gorush.rb
|
$ brew install --HEAD https://github.com/appleboy/gorush/raw/master/HomebrewFormula/gorush.rb
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Install from source
|
||||||
|
|
||||||
|
#### Prerequisite Tools
|
||||||
|
|
||||||
|
* [Git](http://git-scm.com/)
|
||||||
|
* [Go (at least Go 1.11)](https://golang.org/dl/)
|
||||||
|
|
||||||
|
#### Fetch from GitHub
|
||||||
|
|
||||||
|
Gorush uses the Go Modules support built into Go 1.11 to build. The easiest way to get started is to clone Hugo in a directory outside of the GOPATH, as in the following example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ mkdir $HOME/src
|
||||||
|
$ cd $HOME/src
|
||||||
|
$ git clone https://github.com/appleboy/gorush.git
|
||||||
|
$ cd hugo
|
||||||
|
$ go install
|
||||||
|
```
|
||||||
|
|
||||||
### Command Usage
|
### Command Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue