champak

module
v0.0.0-...-f2087ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2016 License: MIT

README

champak

A web application build by go-lang and reactjs.

Install go

For ubuntu
add-apt-repository ppa:ubuntu-lxc/lxd-stable
sudo apt-get update
sudo apt-get install golang
For archlinux
sudo pacman -S go go-tools
Add to your .bashrc or .zshrc
GOPATH=$HOME/go
PATH=$GOPATH/bin:$PATH
export GOPATH PATH
For development
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/itpkg/champak
Start
cd $GOPATH/src/github.com/itpkg/champak
govendor sync
cd demo && go run main.go   # backend server
cd front-react && npm run dev # frontend server

Database creation

postgresql
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'

Build

cd $GOPATH/src/github.com/itpkg/champak
make
ls -lh dist

Documents

Directories

Path Synopsis
engines
ops
web

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL