A web application build by go-lang and reactjs.
add-apt-repository ppa:ubuntu-lxc/lxd-stable
sudo apt-get update
sudo apt-get install golang
sudo pacman -S go go-tools
GOPATH=$HOME/go
PATH=$GOPATH/bin:$PATH
export GOPATH PATH
go get -u github.com/nsf/gocode
go get -u github.com/derekparker/delve/cmd/dlv
go get -u github.com/alecthomas/gometalinter
go get -u github.com/golang/lint/golint
go get -u github.com/kardianos/govendor
go get -u bitbucket.org/liamstask/goose/cmd/goose
go get -u github.com/kapmahc/lotus
cd $GOPATH/src/github.com/kapmahc/lotus
govendor sync
cd demo && go run main.go # backend server
cd front-react
npm install
npm run start # frontend server
psql -U postgres
CREATE DATABASE db-name WITH ENCODING = 'UTF8';
CREATE USER user-name WITH PASSWORD 'change-me';
GRANT ALL PRIVILEGES ON DATABASE db-name TO user-name;
- ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGROOT}/data (code=exited, status=1/FAILURE)
initdb -D '/var/lib/postgres/data'
cd $GOPATH/src/github.com/kapmahc/lotus
make
ls -lh dist