Name: monopoly
Owner: SDSLabs
Description: Monopoly is web game based on IITR map
Created: 2015-03-20 12:01:07.0
Updated: 2015-11-23 09:28:45.0
Pushed: 2015-03-20 12:05:10.0
Size: 15036
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Clone the repository:
$ git clone git@git.sdslabs.co.in:monopoly
$ cd monopoly
Import the db.schema
from /schema
to phpMyAdmin.
Update password.json.template
and rename it to password.json
. Set G_MYSQL_USERNAME
, G_MYSQL_PASSWORD
.
Make an entry for sdslabs.local
in /etc/hosts
.
The server can now be started:
$ node server.js
Visit sdslabs.local:8080
in browser.
Enable production by uncommenting the code within Production
header.
Add server certificate and server key to /ssl
$ mkdir ssl
Update G_SSL_CERT_PASSPHRASE
(this is the password used to encrypt the server's certificate and private key) in JSON/password.json
, if applicable.
To start the server at port 443
, root is needed.
$ sudo node server.js
See configurable options in JSON/constants.json
. For instance, set G_IP_ADDR
to ""
for running the server on a local network. Otherwise, G_IP_ADDR
should exactly match the URL the server is deployed on.
Default SSL and HTTP ports (443
and 80
respectively) require the server to be running with superuser permissions.
To change global logging level set G_SERVER_LOG_LEVEL
.
To enable full socket level logging, set G_LOG_CONNECTION_MESSAGES
.