github.com/jbking/gohan@v0.0.0-20151217002006-b41ccf1c2a96/docs/source/installation.rst (about)

     1  ==============
     2  Installation
     3  ==============
     4  
     5  How to install Gohan
     6  ------------------------------------
     7  
     8  You can download Gohan binary for your platfrom from
     9  github release page.
    10  
    11  https://github.com/cloudwan/gohan/releases
    12  
    13  We have ansible role for Gohan for production usecases
    14  
    15  https://github.com/cloudwan/ansible-gohan
    16  
    17  Getting started using Simple pack
    18  ------------------------------------
    19  
    20  (Step1) Download "Simple pack" which has Gohan binary, WebUI and Sample configuraion from https://github.com/cloudwan/ansible-gohan/releases
    21  
    22  (Step2) Start server
    23  
    24  .. code-block:: shell
    25  
    26    ./gohan server --config-file etc/gohan.yaml
    27  
    28  
    29  (Step3) Open WebUI
    30  
    31  https://localhost:9443/webui/
    32  
    33  login with this ID/Password
    34  
    35  ID: admin
    36  Password: gohan
    37  
    38  Now you can see sample application webui is running.
    39  You can also access schema editing webui by adding "?type=metaschema" on URL.
    40  
    41  https://localhost:9443/webui/?type=metaschema
    42  
    43  Install from source
    44  ------------------------------------
    45  
    46  You need go (>1.4) to build gohan.
    47  
    48  .. code-block:: shell
    49  
    50    # setup development tools
    51    go get github.com/tools/godep
    52    go get github.com/golang/lint/golint
    53    go get github.com/coreos/etcd
    54    go get golang.org/x/tools/cmd/cover
    55    go get golang.org/x/tools/cmd/vet
    56  
    57    # clone gohan
    58    git clone https://github.com/cloudwan/gohan.git
    59    cd gohan
    60    make
    61    make install