adrienschuler-zz / Battle-Arena

ESGI graduation project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Battle Arena

ESGI graduation project

http://esgi-battle-arena.herokuapp.com

Author: @adrienschuler

Installation (Ubuntu)

(Tested on Ubuntu 10.04 & 11.10)

Node.js

$ 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.

MongoDB

 $ sudo apt-get install mongodb
 $ sudo npm install mongoose -g

Redis

$ 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 

Checkout Battle-Arena

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/ !

Running tests

Selenium

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

Credits

Thanks to Lorc for these free awesome game icons.

License

(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.

About

ESGI graduation project


Languages

Language:JavaScript 51.9%Language:CSS 23.2%Language:HTML 18.2%Language:CoffeeScript 5.3%Language:Ruby 1.2%Language:Shell 0.1%