Hi guys
I wanna share a good HTML5 gambling full source
You can download the source code from below link
https://drive.google.com/open?id=1FiN04VoekG3GMrzwjja
(If nobody interest in developing this game, I will delete this thread soon)
Server install instructions
------------------------------
# For Windows server
###### 1. Download [node-v4.4.7](https://nodejs.org/dist/v4.4.7/node-v4.4.7-x64.msi "node-v4.4.7") --> install
###### 2. Download [redis-server](https://github.com/MSOpenTech/redis/releases "redis-server") --> install
###### 3. Download [mongodb-server[v3.2+]](https://www.mongodb.com/download-center "mongodb-server") --> install
###### 4. Download [Git](https://git-scm.com/downloads "git")
Add the \bin and usr\bin folder in the Git directory to the Path environment variable.
###### 5. Configure this file : config\memdb.conf.js、config\development\memdb.json、config\development\servers.json
# mongodb => config\memdb.conf.js和config\development\memdb.json --> edit backend.url
# gate => config\development\servers.json --> edit host and clientPort
# connector => config\development\servers.json -> edit clientIP and clientPort
###### 6. Start the cache service then open a command prompt in the project directory.
node_modules\\.bin\memdbcluster start -c config\memdb.conf.js
# or
.env_vars.cmd
memdbcluster start -c config\memdb.conf.js
###### 7. Start the game service and open a command prompt in the project directory.
node_modules\\.bin\pomelo start
# or
.env_vars.cmd
pomelo start
-------------------------------------------------------------------------
# For Linux server
###### 1. download [node-v4.4.7](https://nodejs.org/dist/v4.4.7/node-...nux-x64.tar.gz "node-v4.4.7") --> install
###### 2. download redis-server --> Install and start.
# ubuntu
sudo apt-get install -y redis-server
# centos
sudo yum install -y redis-server
###### 3. download mongodb-server[v3.2+] -> Install and start.
# ubuntu
sudo apt-get install -y mongodb-server
# centos
sudo yum install -y mongodb-server
###### 4. recompile -> node_modules,excute this in the project directory -> npm rebuild,Install the missing depended library
###### 5. configure --> config/memdb.conf.js、config/development/memdb.json、config/development/servers.json
# mongodb => edit config/memdb.conf.js and config/development/memdb.json in backend.url
# gate => config/development/servers.json --> edit host and clientPort
# connector => config/development/servers.json --> clientIP and clientPort
###### 6. Start the cache service and switch to the project directory.
node_modules/.bin/memdbcluster start -c config/memdb.conf.js
# or
. .bash_profile
memdbcluster start -c config/memdb.conf.js
###### 7. Start the game service and switch to the project directory
node_modules/.bin/pomelo start
# or
. .bash_profile
pomelo start
![]()



Reply With Quote


