git clone https://github.com/m-k-S/poc-engine
cd poc-engine
npm install
- Create database called pocgamedb_test on postgresql
- Run below command to create tables
psql -U postgres pocgamedb_test < poc-engine/server/sql/schema.sql
npm start
It will run game server on 127.0.0.1:4000 # current recatcha is built for 127.0.0.1 not localhost so run using 127.0.0.1:4000
- Register users on http://127.0.0.1:4000/register
- To give user admin role, edit the database/users table manually on NaviCat or something that can manage postgresql
- Create a row on database/fundings, amount field as 100000000000
- And to give user some test tokens, goto http://127.0.0.1:4000/admin-giveaway and enter usernames and amount there.
After running Gameserver at https://github.com/m-k-S/poc-game do below steps
- Login as admin user and goto http://127.0.0.1:4000/admin
- Click Resume Game button
- It will automatically play game
- Playing is done on http://127.0.0.1:4000/play-old # or click play button on http://127.0.0.1:4000
sudo -u postgres psql \c pocgamedb_test; SELECT * from users; UPDATE users SET userclass = 'admin';
When deploy to server, socket.io version can have issue
- npm update
- npm install
- npm r socket.io
- npm r socket.io-client
- npm r socket.io-cookie
- npm i [email protected]
- npm i [email protected]
- npm i [email protected]
forever start -o log/out.log -e log/err.log server/index.js