Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

calvinjoshua/go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Aurora setup

To build aurora you must have go and dep in your ubuntu enivironment. To install go you need to perform below steps and go version must be >=1.9

Install go

PATH="$HOME/bin:$HOME/.local/bin:$PATH"
export GOPATH=$HOME/go
export PATH=${GOPATH}/bin:${PATH}
and save the file
  • Open vi .bashrc and add following lines
eval "$(direnv hook bash)"
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
  • To refresh the files execute following commands:
source ~/.profile
source  ~/.bashrc
  • Check go version
$ go version

Install dep

$ dep version

Install aurora

  • mkdir github.com/diamantenet in /home/ubuntu/go/src
  • go to /home/ubuntu/go/src/github.com/diamantenet and execute following command:
  • git clone https://github.com/diamante-block/go.git
  • go to /home/ubuntu/go/src/github.com/diamantenet/go and execute following command:
$ sudo apt-get install mercurial
$ dep ensure –v
  • go to /home/ubuntu/go/src and execute following command:
$ go install -ldflags "-X github.com/diamantenet/go/support/app.version=aurora-0.16.0" github.com/diamantenet/go/services/aurora/
  • after running above command you check aurora build in <Your_dir>/go/bin folder and you can check aurora version by following command :
$ ./aurora version

Aurora database setup

  • Create a user for Diamante Net aurora database.
$ sudo -s
$ su – postgres
$ createuser <username> --pwprompt
$ Enter password for new role: <Enter password>
$ Enter it again: <Enter the pwd again>
  • You need to add Aurora user. Exit from postgres and login as root user and execute following command.
$ exit
$ adduser <username>;
  • To verify if user is created, execute following commands
$ su - postgres
$ psql
$ \du
  • Create a blank database using following command.
 $ CREATE DATABASE <DB_NAME> OWNER <user created>;

Initialize aurora

  • Initialize aurora with database login as root user and Go “go/bin” using following command
 $ export DATABASE_URL="postgresql://define aurora db username:define aurora db user password@localhost/define aurora database name"
  • After that Go “go/bin” and execute following command
$ ./aurora db init

Aurora up command

  • Go “go/bin” execute following command
$ sudo nohup ./aurora --db-url="postgresql://define aurora db username:define aurora db user password @localhost/define aurora database name" --hcnet-core-db-url="postgresql://define Node1 database username:define Node1 database user password@localhost/define Node1 database name" --hcnet-core-url="http://localhost:11626" --network-passphrase="define Network password" --ingest="true" --per-hour-rate-limit=540000000 &

About

Diamante aurora setup installation process.

Resources

License

Unknown, Apache-2.0 licenses found

Licenses found

Unknown
COPYING
Apache-2.0
LICENSE-APACHE.txt

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 95.5%
  • RPC 2.5%
  • Ruby 1.4%
  • Shell 0.4%
  • Logos 0.1%
  • PLpgSQL 0.1%