Manual Yu-Gi-Oh! simulator.
Node.js | MongoDB |
First, start up MongoDB:
$ mongod
Then, open up another terminal window:
$ git clone https://github.com/Yugioh-Sims-International/ygoworld.git && cd YGOSiM
$ npm install
$ node lib/server.js
To build YGOWorld, you need to install Grunt globally:
$ npm install -g grunt-cli
Run grunt build
to concat and minify CSS and JavaScript files.
Run grunt iteration
to watch CSS and JavaScript files and as you make changes,
it minifies the CSS and JavaScript files.
You can also run grunt test
to use linters to check if you made any errors
in your code.
Once your server is up, you probably want to make yourself an Administrator (-) on it.
To become an Administrator, edit config.json.
//{"Chen": 4, "Francexi": 4, "Access": 4}
0: ' ', //user
1: '+', //voice -> tournaments and broadcast
2: '*', //mod -> ban,mute
3: '#', //admin -> promote
4: '-' //owner -> console