# Compile and Run

## Download

Download source code via `git`

> git clone <https://github.com/koisanworld/koisan-chain>

## Install Golang (Version 16.4) <a href="#install-golang-version-164" id="install-golang-version-164"></a>

Reference: [Go Download and install](https://golang.org/doc/install)

## Compile

```
cd /path/to/koisan-chain
make geth
or
make all
```

{% hint style="info" %}
If you want to use cross compile, like compiling on `Mac` for `Linux`, use `make geth-linux`, `make geth-linux-amd64`, etc.
{% endhint %}

After compilation completed, the generated binary is in the folder `build/bin`.

## Run

By running `./build/bin/geth --help`, we can get all `option` info. Specific usage can refer to [Command-line Options](https://geth.ethereum.org/docs/interface/command-line-options)

## Deployment

Please refer [deployment](http://149.28.150.84:3000/#/dev/deploy)

{% hint style="info" %}
SSD is required
{% endhint %}

## Network

Program will connect into `mainnet` after started. If want to connect the public testnet, you can add option `--testnet` to command when starting.
