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.16.14

Install go

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 aurora

  • mkdir in /home/ubuntu/go/src
  • go to /home/ubuntu/go/src/ and execute following command:
  • git clone
  • go to /home/ubuntu/go/src/ /go and execute following command:

$ go to /home/ubuntu/go/src

$ go install -v ./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 HC 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
  • Now you have to done the aurora setup……


View Github