Skip to content
SchtolcPublic

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Latest commit

 

History

216 Commits

Folders and files

Repository files navigation

Build StatusGo Report Card

Mooncore

Backend for moon project written in go. Under heavy development atm.

How to build project

  1. mkdir -p $GOPATH/src/github.com/Schtolc
  2. git clone git@github.com:Schtolc/mooncore.git
  3. go build github.com/Schtolc/mooncore

How to launch project

  1. install & run mysql-server on default port
  2. specify mysql credentials in config.yaml
  3. echo 'CREATE DATABASE IF NOT EXISTS moondb' | mysql -u root -p
  4. sudo mkdir /var/log/mooncore
  5. sudo chmod 777 /var/log/mooncore
  6. $GOPATH/src/github.com/Schtolc/mooncore/mooncore

How to deploy project

  1. go get github.com/Schtolc/mooncore
  2. /root/go/bin/mooncore &

How to look after running app

  1. Grep logs with yajl:
$ brew install yajl
$ sudo apt-get install yajl-tools
$ grep "fatal" /var/log/mooncore/main.log | json_formatter -s

How to develop project

  1. Submit an issue
  2. Submit a pull request for an issue with "[MCORE-{ISSUE NUMBER}]" suffix
  3. Make changes until an approval
  4. Merge pull request
  5. Close issue

Development rules

If you pushing any changes, make sure that:

  1. Travis is green (see next section)
  2. All changes are directly related to an issue(!)
  3. Your changes response to all (if any) comments in the pull request
  4. All commits have "[MCORE-{ISSUE NUMBER}]" suffix

Tools we use during development and in Travis

  1. golint: golint ./...
  2. gocyclo: gocyclo --over 10 .
  3. gofmt: gofmt -l .
  4. gotest: go test -v ./... (make sure app is running)

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址