ARISGames / server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ARIS

Requirements

  • php 5.3
  • mysql

Install

  • Copy config.class.php.template to config.class.php
  • Modify to point to your mysql databases and app directories.
  • Import services/v2/db/upgrades_table.sql into your v2 database.
  • Visit <aris server>/services/v2/autocrud/index.html
  • Use autocrud to GET `db.upgrade' to create all aris tables.
  • Register a user in the database and play with the API!

Errata

  • For OSX, xampp version 1.7.3 (an older download) works as of (2/10/2015)
  • If the json does not parse, the server is returning deprecated php warnings. Disable by setting error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED in your php.ini
  • Make sure the web server has permission to write to the v2_gamedata_folder and that it is an absolute path.

Vagrant

You can also use Vagrant to run the server inside a virtual machine.

  • Run vagrant up from the repo root to create and set up the machine.

  • The repo is shared inside the machine at both /vagrant and /var/www/server.

  • Port 10080 on the host machine is forwarded to 80 on the guest, so for example you can access the autocrud page at http://localhost:10080/server/services/v2/autocrud/

  • Use the following info to access the database by SSH tunneling into the virtual machine:

    • Host: 127.0.0.1
    • Username: root
    • Password: root
    • Database: arisv2
    • SSH host: 127.0.0.1
    • SSH user: vagrant
    • SSH password: vagrant
    • SSH port: 2222

    You can also connect to the box with private key authentication (as vagrant ssh does). Run vagrant ssh-config if you need to see where the private key is located.

About

License:MIT License


Languages

Language:PHP 90.9%Language:JavaScript 3.1%Language:HTML 3.1%Language:CSS 2.8%Language:Shell 0.0%Language:Makefile 0.0%Language:Awk 0.0%