- php 5.3
- mysql
- Copy
config.class.php.templatetoconfig.class.php - Modify to point to your mysql databases and app directories.
- Import
services/v2/db/upgrades_table.sqlinto 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!
- 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_DEPRECATEDin yourphp.ini - Make sure the web server has permission to write to the
v2_gamedata_folderand that it is an absolute path.
You can also use Vagrant to run the server inside a virtual machine.
-
Run
vagrant upfrom the repo root to create and set up the machine. -
The repo is shared inside the machine at both
/vagrantand/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 sshdoes). Runvagrant ssh-configif you need to see where the private key is located. - Host: