Skip to content

stevoduhhero/YGOSiM-archive

Repository files navigation

Build Status Dependency Status devDependency Status

Manual Yu-Gi-Oh! simulator.

Prerequisites

Node.js MongoDB

Getting Started

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

Building

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.

Setting up an Administrator account

Once your server is up, you probably want to make yourself an Administrator (-) on it.

db.json

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.

Updating card images

Download ygopro, they're in the YGOPRO/pics/ folder

Updating cards database

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

License

MIT