Giter VIP home page Giter VIP logo

asymmetric-warfare's Introduction

Setup for OSX

  1. Install homebrew
  2. brew install node
  3. brew install mongodb
  4. git clone https://github.com/Longhouse-Games/asymmetric-warfare.git
  5. cd asymmetric-warfare
  6. npm install
  7. gem install foreman
  8. Fill out your .env file:
DISABLE_CAS=true # set to false to hit the CAS host specified by CAS_HOST and CAS_HOST_FALLBACK
CAS_HOST="ask someone"
CAS_HOST_FALLBACK="ask someone"
EGS_HOST="localhost" # if running the liferay stub, use localhost
EGS_PORT="4000" # if running the liferay stub, it listens on this port
EGS_USERNAME="ask someone" # not needed for liferay stub
EGS_PASSWORD="ask someone" # not needed for liferay stub
PREFIX="/asymmetric-warfare"
PORT=3000
  1. foreman run
  2. open http://localhost:3000/asymmetric-warfare/new?state=foo&insurgent=bar&fmt=html&dbg=1

Liferay Stub

The Liferay stub is defined in Raven and mimics the behaviour of the ECCO liferay server. This includes retrieving player profiles and sending game updates. By default the following users are defined:

  1. foo
  2. bar

If DISABLE_CAS=true in your .env file is not set, these user accounts must be created on your CAS server.

Running the Server

  1. foreman run
  2. or, to start it but not run the liferay-stub: foreman start -c liferay=0

Deployment

It's best to run the server on port 843. AVAST and a few other Antivirus programs block websockets and XHR polling on other ports. 843 offers maximum compatibility.

Behind a proxy, add this to your .env file:

SERVICE_URL="https://localhost" # should be the external URL of the app

You can use foreman to get upstart/runit/bluepill/inittab entries for the services. See more here: http://blog.daviddollar.org/2011/05/06/introducing-foreman.html

asymmetric-warfare's People

Contributors

cowboycoderforever avatar eplawless avatar erheine avatar ericlonghousegames avatar kjchiu avatar lochemage avatar phfatmonkey avatar rgould avatar

Watchers

 avatar  avatar  avatar

asymmetric-warfare's Issues

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.