Skip to content

Cristi97Gaming/bustabit-webserver

master
Switch branches/tags
Code
This branch is 1 commit behind hajoxx:master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

INSTALLATION

Debian/Ubuntu

These are instructions for running bustabit locally on a Debian / Ubuntu machine.

Distribution packages

You will need to install the Postgres DBMS and node.js. The nodejs-legacy package installs nodejs but will additionally create a symlink from /usr/bin/node to /usr/bin/nodejs.

sudo apt-get install git npm postgresql nodejs-legacy

Getting the sources

git clone https://github.com/moneypot/bustabit-webserver.git
cd bustabit-webserver

Create a database user and setup the tables

Create a user. It will prompt you for a password.

sudo -u postgres createuser -P bustabit

Create the database and setup the tables. The second command will prompt you for the password again.

sudo -u postgres createdb -O bustabit bustabitdb
psql -W -U bustabit -d bustabitdb -h localhost -f server/schema.sql

Mac OS X

These are instructions for running bustabit locally on a Mac using homebrew.

Install homebrew packages

brew install git node npm postgresql

Getting the sources

git clone https://github.com/moneypot/bustabit-webserver.git
cd bustabit-webserver

Create a database user and setup the tables

Create a user. It will prompt you for a password.

createuser -P bustabit

Create the database and setup the tables. The second command will prompt you for the password again.

createdb -O bustabit bustabitdb
psql -W -U bustabit -d bustabitdb -h localhost -f src/server/schema.sql

Configuration

Installing node.js dependencies locally.

This will download and install all dependencies in the node_modules subdirectory.

npm install

Database

Export the database link as an environment variable

export DATABASE_URL=postgres://bustabit:<YOURPASSWORD>@localhost/bustabitdb

BIP32 Key

You will need to create a BIP32 key pair. You can do at your own risk online at bip32.org. Export the public key as an environment variable

export BIP32_DERIVED_KEY=xpub6AH.....

Running

You can run the server by using npm start. By default it will listen on port 3841.

About

The social gambling game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.8%
  • HTML 26.9%
  • CSS 8.8%
  • Other 0.5%