Giter Club home page Giter Club logo

gameon's Introduction

gameon: The Root Repository / Quick start developers guide.

This is the TL;DR version.

For more details/background/links, see:

Local Room Development

  1. Obtain the source for this repository:
  • HTTPS: git clone https://github.com/gameontext/gameon.git
  • SSH: git clone [email protected]:gameontext/gameon.git
  1. Change to the gameon directory, choose Kubernetes or Docker Compose, set aliases to save typing

     $ cd gameon                  # cd into the project directory
    
  2. (Optional / Docker Compose only) Use Vagrant for your development environment

    1. Install Vagrant
    2. vagrant up (likely with --provider=virtualbox)
    3. vagrant ssh
    4. use pwd to ensure you're in the /vagrant directory.
    • Notes:
      • the Vagrantfile updates the .bashrc for the vagrant user to set DOCKER_MACHINE_NAME=vagrant to tweak script behavior for use with vagrant.
      • VM provisioning will perform the next two steps on your behalf.
  3. (Kubernetes only) Create or retrieve credentials for your cluster

  4. Set up required keystores and environment variables. This step also pulls the initial images required for running the system.

     $ ./go-admin.sh choose       # choose Docker Compose or Kubernetes
     $ eval $(./go-admin.sh env)  # set aliases for admin scripts
     $ alias go-run               # confirm path  (docker or kubernetes)
     $ go-admin setup
    

    Note: it is safe to run setup again, e.g. to check dependencies, or regenerate files if IP addresses change

  5. Start the game (supporting platform and core services):

     $ go-admin up
    
  6. Wait for the game to start. This will vary between Docker Compose and Kubernetes approaches. ./go-admin.sh up will tell you what to try next.

  7. Carry on with building your rooms!

  8. Stop / Clean up

     $ go-admin down
    

Core Service Development (Optional)

If you want to contribute to the game's core services, no worries! Assuming you've performed the steps above at least once (and using the map service as an example):

  1. Change to the gameon directory, set aliases to save typing

     $ cd gameon                  # cd into the project directory
     $ eval $(./go-admin.sh env)  # set aliases for admin scripts
     $ alias go-run               # confirm path  (docker or kubernetes)
    
  2. Obtain the source for the project that you want to change. The easiest way is to take advantage of git submodules.

     $ git submodule init map
     $ git submodule update map
    

Updating the game environment once you've made changes varies by deployment:


Notes

Supporting 3rd party auth

3rd party authentication (twitter, github, etc.) will not work locally, but the anonymous/dummy user will. If you want to test with one of the 3rd party authentication providers, you'll need to set up your own tokens to do so.

  • Docker: ./docker/gameon.env
  • Kubernetes (files present after setup):
    • ./kubernetes/kubectl/configmap.yaml
    • Using helm: ./kubernetes/chart/gameon-system/values.yaml

Contributing

Want to help! Pile On!

Contributing to Game On!

gameon's People

Contributors

ebullient avatar bardweller avatar benjsmi avatar marknsweep avatar anthonyamanse avatar billyd73 avatar katheris avatar osowski avatar samze avatar iainduncani avatar

Watchers

James Cloos avatar  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.