To build/run:
- Clone brypt-server into your ~/go/src directory
- If testing local: Add the following lines to your hosts file
- 127.0.0.1 access.localhost
- 127.0.0.1 bridge.localhost
- 127.0.0.1 dashboard.localhost
- If testing local: Generate TLS certificate key pair and place in /config/ssl
- Install "generate_cert" via "go install $GOROOT/src/crypto/tls/generate_cert.go"
- May need "export $GOBIN=$GOROOT/bin"
- Run "generate_cert -host=127.0.0.1,localhost,access.localhost,bridge.localhost,dashboard.localhost,brypt.com -ca -ecdsa-curve=P384"
- Place "cert.pem" and "key.pem" in /config/ssl
- Run the following commands in brypt-server/
- $make deps
- $make add_deps
- $make build
- To run use: $./bin/bserv
- If testing local: Run "curl -L -k -X GET http://access.localhost:3005"
Troubleshooting:
Permissions:
- If getting permission errors during step 4, perform the following steps:
- Run $sudo su
- Source ~/.bashrc file
- Try running the command which failed again
Not a go package or not in GOPATH error: 1) $export name/go 2) "name" being something like /home/username/go
.bashrc File Configuration:
- Include the following at the bottom of your bashrc file:
export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin export PATH=$PATH:/usr/local/go/bin export GOROOT=/usr/local/go export GOBIN=$GOROOT/bin