-
Install node dependencies:
npm install
-
Run
phaser_game.sql
SQL script into your MySQL database. This will create the needed database and the table for storing the high scores for the leader board. -
Configure database connection in
server.js
. Set up your mysql host, user and password.var connection = mysql.createConnection({ host : 'example.com', user : 'user', password : 'password', database : 'phaser_game' });
-
To run the game server use:
node server.js