Manual Yu-Gi-Oh! simulator.
Node.js | MongoDB |
First, start up MongoDB:
$ mongod
Then, open up another terminal window:
$ git clone https://github.com/stevoduhhero/YGOSiM.git && cd YGOSiM
$ npm install
$ node lib/server.js
To build YGOSiM, 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, create a file named db.json
containing
{
"auths": {
"USER": 4
}
}
Replace USER
with the username that you would like to become an Administrator.
Download ygopro, they're in the YGOPRO/pics/ folder
Download ygopro export YGOPRO/cards.cdb as a .sql using sqlite3 .output & .dump functions import into mysql edit exportygoprodb.php edit these lines to connect to your mysql: $servername = "localhost"; $username = "root"; $password = ""; run exportygoprodb.php on the webserver connected to the mysql database replace db.js with exportygoprodb.php output