Author: @adrienschuler
(Tested on Ubuntu 10.04 & 11.10)
$ sudo wget http://nodejs.org/dist/v0.6.18/node-v0.6.18.tar.gz
$ sudo tar xvzf node-v0.6.18.tar.gz
$ cd node-v0.6.18
$ sudo ./configure
$ sudo make
$ sudo make install
Check node.js install :
$ node -v
> v0.6.18
Check npm install :
$ npm -h
Should output npm help.
$ sudo apt-get install mongodb
$ sudo npm install mongoose -g
$ sudo wget http://redis.googlecode.com/files/redis-2.4.15.tar.gz
$ sudo tar xvzf redis-2.4.15.tar.gz
$ cd redis-2.4.15
$ sudo make
$ sudo make install
Launch Redis server daemon :
$ ./src/redis-server
Requires Git
$ sudo apt-get install git-core
$ sudo git clone https://github.com/adrienschuler/Battle-Arena.git
$ cd Battle-Arena
Install NPM dependencies
$ sudo npm install
Import database
$ mongoimport -d battle_arena -c users --file db/users.json
$ mongoimport -d battle_arena -c characters --file db/characters.json
$ mongoimport -d battle_arena -c spells --file db/spells.json
Launch Battle Arena
$ node index.js
Go to http://localhost:3000/ !
Download Selenium server :
$ sudo wget http://selenium.googlecode.com/files/selenium-server-standalone-2.24.1.jar
Launch Selenium server daemon :
java -jar selenium-server-standalone-2.24.1.jar
Run Selenium test suite :
$ ruby Battle-Arena/test/selenium.rb
Thanks to Lorc for these free awesome game icons.
(The MIT License)
Copyright (c) 2012 adrien.schuler+github@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.