Code Monkey home page Code Monkey logo

gameserver's Introduction

INSTALLATION

Debian/Ubuntu

These are instructions for running MoneyPot 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/espringe/moneypot.git
cd moneypot

Create a database user and setup the tables

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

sudo -u postgres createuser -P moneypot

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

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

Mac OS X

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

Install homebrew packages

brew install git node npm postgresql

Getting the sources

git clone https://github.com/espringe/moneypot.git
cd moneypot

Create a database user and setup the tables

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

createuser -P moneypot

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

createdb -O moneypot moneypotdb
psql -W -U moneypot -d moneypotdb -h localhost -f 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://moneypot:<YOURPASSWORD>@localhost/moneypotdb

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.....

Coinbase

TODO

export COINBASE_API_KEY
export COINBASE_SECRET

Running

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

gameserver's People

Contributors

espringe avatar kungfuant avatar jasidlauskas avatar foad avatar

Watchers

James Cloos avatar SiteRUSSIA 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.