A new type of crypto curency
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- Go 1.10 or newer.
- Mac, Linux, Window OS
- Install Go according to the installation instructions here: http://golang.org/doc/install
- Ensure Go was installed properly and is a supported version:
$ go version
$ go env GOROOT GOPATH
- Clone Project to GOPATH NOTE: The GOROOT and GOPATH above must not be the same path. It is recommended that GOPATH is set to a directory in your home directory such as ~/goprojects to avoid write permission issues. It is also recommended to add $GOPATH/bin to your PATH at this point.
- Install go lib with
go get -v
- Run
go build -o constant
in project dir or runsh build.sh
to copy into go bin dir
- Pre-install like "Prerequisites"
- Get node up with
go build
$ ./constant --enablewallet --wallet "wallet" --walletpassphrase "12345678" --testnet --norpcauth
- Get node up with
sh build.sh
$ constant --enablewallet --wallet "wallet" --walletpassphrase "12345678" --testnet --norpcauth
- To start dev container
$ docker-compose -p constantdev -f dev-env/docker-compose.yaml up -d
- To stop dev container
$ docker-compose -f dev-env/docker-compose.yaml down
- To start developing
$ docker exec -it constant-prototype-dev sh
$ glide install
$ go build
$ ./constant
- To start other nodes (these nodes will start will config file in dev-env/nodes-data/node-<NODE_NUMBER>)
$ docker run -i -t --net constantdev_constant-net --mount type=bind,src=$PWD/constant,dst=/constant --mount type=bind,src=$PWD/dev-env/nodes-data/node<REPLACE THIS WILL NODE_NUMBER>,dst=/nodedata --expose 9333 alpine:3.7 /constant --configfile /nodedata/config.conf
- Refer to config.go or sample-config.conf in source code to get full explanation
- Run node with config param in long or short format to change features of running node