Git Product home page Git Product logo

bustabit_webserver_custom's Introduction

Getting sources and install node modules

git clone https://github.com/m-k-S/poc-engine
cd poc-engine
npm install

Database build

  1. Create database called pocgamedb_test on postgresql
  2. Run below command to create tables psql -U postgres pocgamedb_test < poc-engine/server/sql/schema.sql

Start locally

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
  1. Register users on http://127.0.0.1:4000/register
  2. To give user admin role, edit the database/users table manually on NaviCat or something that can manage postgresql
  3. Create a row on database/fundings, amount field as 100000000000
  4. And to give user some test tokens, goto http://127.0.0.1:4000/admin-giveaway and enter usernames and amount there.

Connecting with Gameserver

After running Gameserver at https://github.com/m-k-S/poc-game do below steps

  1. Login as admin user and goto http://127.0.0.1:4000/admin
  2. Click Resume Game button
  3. It will automatically play game
  4. Playing is done on http://127.0.0.1:4000/play-old # or click play button on http://127.0.0.1:4000

Warning

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

forever start -o log/out.log -e log/err.log server/index.js

bustabit_webserver_custom's People

Contributors

superoleh avatar superwebmaster621 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.