khan

command module
v0.9.11 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2016 License: MIT Imports: 1 Imported by: 0

README

Khan

Build Status Coverage Status Code Climate Go Report Card Docs

Khan will drive all your enemies to the sea (and also take care of your game's clans)!

Setup

Make sure you have go installed on your machine. If you use homebrew you can install it with brew install go.

Run make setup.

Running the application

Create the development database with make migrate (first time only).

Run the api with make run.

Hosting the Application

You can run it easily in one of the cloud providers using our docker images.

The following environment variables are available to you:

  • KHAN_POSTGRES_HOST
  • KHAN_POSTGRES_PORT
  • KHAN_POSTGRES_DBNAME
  • KHAN_POSTGRES_USER
  • KHAN_POSTGRES_PASSWORD
  • KHAN_POSTGRES_SSLMODE
  • KHAN_SENTRY_URL

Running with docker

Provided you have docker installed, to build Khan's image run:

$ make build-docker

To run a new khan instance, run:

$ make run-docker

Docker Image

You can get a docker image from our dockerhub page.

Tests

Running tests can be done with make test, while creating the test database can be accomplished with make drop-test and make db-test.

Benchmark

Running benchmarks can be done with make ci-perf.

Coverage

Getting coverage data can be achieved with make coverage, while reading the actual results can be done with make coverage-html.

Static Analysis

Khan goes through some static analysis tools for go. To run them just use make static.

Right now, gocyclo can't process the vendor folder, so we just ignore the exit code for it, while maintaining the output for anything not in the vendor folder.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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