GithubHelp home page GithubHelp logo

capella / khan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from topfreegames/khan

0.0 1.0 0.0 88.37 MB

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

License: MIT License

Dockerfile 0.29% Makefile 0.93% Go 96.42% Shell 0.72% TSQL 1.46% Python 0.18%

khan's Introduction

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)!

What is Khan? Khan is an HTTP "resty" API for managing clans for games. It could be used to manage groups of people, but our aim is players in a game.

Khan allows your app to focus on the interaction required to creating clans and managing applications, instead of the backend required for actually doing it.

Features

  • Multi-tenant - Khan already works for as many games as you need, just keep adding new games;
  • Clan Management - Create and manage clans, their metadata as well as promote and demote people in their rosters;
  • Player Management - Manage players and their metadata, as well as their applications to clans;
  • Applications - Khan handles the work involved with applying to clans, inviting people to clans, accepting, denying and kicking;
  • Clan Search - Search a list of clans to present your player with relevant options;
  • Top Clans - Choose from a specific dimension to return a list of the top clans in that specific range (SOON);
  • Web Hooks - Need to integrate your clan system with another application? We got your back! Use our web hooks sytem and plug into whatever events you need;
  • Auditing Trail - Track every action coming from your games (SOON);
  • New Relic Support - Natively support new relic with segments in each API route for easy detection of bottlenecks;
  • Easy to deploy - Khan comes with containers already exported to docker hub for every single of our successful builds. Just pick your choice!

Read more about Khan in our comprehensive documentation.

Hacking Khan

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.

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

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.

Security

If you have found a security vulnerability, please email [email protected]

khan's People

Contributors

andrehp avatar banduk avatar cscatolini avatar felipejfc avatar ghostec avatar guilhermef avatar henrod avatar heynemann avatar igorvpcleao avatar infax01 avatar lftakakura avatar matheuscscp avatar mbanduk avatar traysh avatar vctandrade avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.