Skip to content
Damien Brugne edited this page Jan 6, 2015 · 56 revisions

Hosting

Server connections

  • MongoDB production: localhost:27017/donut via SSH on : damien@5.196.206.60:22 (private key)
  • Redis production: localhost:6379 via SSH on : damien@5.196.206.60:22 (password)

Installation

Pre-requisites

  • node.js + npm
  • MongoDB
  • Redis
  • Bower (installed as npm -g)

Pomelo on Windows

  • Uninstall all existing Visual Studio installation and C++ redistributable
  • Download and install "Microsoft Visual Studio Express 2012 pour Windows Desktop": http://go.microsoft.com/?linkid=9816758
  • Have a functionnal Python runtime (2.5 < version <3.0)

Redis for Windows

To install Redis on Windows x64 with unofficial port. Built binaries are available in the bin/ folder of this repository: https://github.com/MSOpenTech/redis

Get the ZIP file, uncompress in C:\Program Files\redis

Launch a "Commande line console" as "privileged user".

> cd "Program Files"/redis
> redis-server.exe

Normally now the server run correctly. Quit with CTRL+C.

Now we should configure Redis as a service:

> redis-server --service-install redis.windows.conf --loglevel verbose
> redis-server --service-start

You can use the excellent http://redisdesktop.com/ to browse server from desktop.

Project installation

Install global package (as root):

sudo su
npm install pomelo -g
exit

Clone the GitHub project: https://github.com/dbrugne/donut.git

Install dependencies:

cd donut 
npm install
cd game-server
npm install
cd ../web-server
npm install
bower install
cd ..

Create logs dir:

cd game-server
mkdir logs
cd ..

Then launch the application (development):

NODE_ENV=dev ./bin/www

Or production:

pm2 restart chat

Clone this wiki locally