This is an ugly reproduction of the game server of the mobile game Dofus Touch (Ankama) in NodeJs with ES6 (a lot of bad practice, that was my first ES6 app). Stars repos for more ❤️
- Install dependencies:
For npm:
npm install
If you use yarn
yarn install
- Install database in MySQL server.
- Configure file config/config.js with your MYSQL informations
- If you have change AUTH_PORT value in config/config.js you need to change this line in config/config.json:
actual:
"dataUrl": "http://localhost:3000",
"haapi": {
"id": 18,
"url": "https://haapi.ankama.com/json/Ankama/v2",
"url": "http://localhost:3000/haapi",
"hostname": "ankama.com"
},
by
"dataUrl": "http://localhost:YOUR AUTH PORT",
"haapi": {
"id": 18,
"url": "https://haapi.ankama.com/json/Ankama/v2",
"url": "http://localhost:YOUR AUTH PORT/haapi",
"hostname": "ankama.com"
},
- Now you can run the server:
For yarn:
yarn build
For npm:
npm build