Casino server

Casino server

{H1}

Search code, repositories, users, issues, pull requests

npm version

Build Status

NPM

An online poker game server powered by redis, thisisnl.nl and thisisnl.nl

AAA

Game rules supported:

Features:

TODO List:

Architecture

Redis is an open source, BSD licensed, advanced key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs.

Download

thisisnl.nl is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. thisisnl.nl uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

Download

  • PM2 (production & cluster)

PM2 is a production process manager for thisisnl.nl applications with a built-in load balancer. It allows you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks.

Read More

  • Installing globally and run as service with PM2:
[sudo] npm install pm2 -g [sudo] npm install casino-server -g # run redis-server first redis-server &# run as service and cluster mode pm2 start `which casino-server` -i 0
  • Installing as a node app, and run in current folder:
git clone thisisnl.nl casino cd casino npm install # sudo npm install -g gulp# gulp build node bin/casino-server [options]

Now you can visit http://localhost, it's a web-based game client for testing and demo purpose.

# open a browser to access the test web page open http://localhost/

-p Port to use (defaults to )

-h Host address to use (defaults to )

-r Address of Redis server (defaults to )

With Redis as the message bus, it's very easy for tools to work with the open architecture.

Start the event logger to monitor the events:

Or, log the events into log file:

bin/thisisnl.nl -o ./tmp/thisisnl.nl
  • thisisnl.nl for Unity3D, is a thisisnl.nl client library for Unity3D. You can develop casino games with Unity3D, and using this library to connect to this casino server.

This poker game server is created by Raymond Xie, published under MIT license.

It can be used for FREE, but be aware that:

  • It is provided as it is. (Not a mature commercial product, may be incomplete, or even lots of bugs)
  • We will mainly focus on our own needs.
  • You can propose wish for new features, but don't rely on us to implement them. Instead of waiting for new features, welcome join us to implement them.
  • You need take your own risk, including that you need find answers from reading code instead of easily asking only. :P

If you are interested in this project, you can contribute in any of following aspects:

  • Simply "Star" it.
  • Use it or test it, report bugs or even send pull request of patches.
  • Add better HTML5 demo client.
  • Add new poker game rules.
  • Add client APIs in other languages (like C# for Unity, Java, Objective-C, C/C++, etc.)
  • Help us write documentation, if your English is good.
Источник: thisisnl.nl