Skip to content

sushiisumii/bridge-server-src

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bridge Server

Bridge is a unified messaging system that allows you to easily build cross-language services to share data and realtime updates among your servers and your clients

Runtime Requirements

The Bridge Server requires Erlang (>= R15) and rebar (included in this directory).

Installation

Before compiling for the first time, you must use rebar to resolve dependencies.

./rebar get-deps

To compile the Bridge Server, run the following from the top level directory of this project:

./rebar compile 

To package Bridge Server into a release version (and to make it easier to run in the future) run: Note: Be sure that your project directory is named 'gateway' for this script to work correctly (at least until this is correctly changed).

./scripts/rel.sh

To run bridge in the background, run:

~/.bridge/bin/server start

To stop bridge, run:

~/.bridge/bin/server stop

Finally to run the Bridge Server in development mode, start RabbitMQ and then run:

./scripts/run-verbose.sh

Adding Api Keys to Bridge:

First make sure the control server is running for bridge (default is running).
Then make this api call to the control server to add whatever api key (you want) to add.

curl -i http://YOURBRIDGEHOST:7002/ctl/addKey -d '{"priv_key":"YOUR_PRIVATE_KEY", "pub_key":"YOUR_PUBLIC_KEY", "new_limit": 10000000}'

Documentation and Support

The examples directory of this library contains sample applications for Bridge.

Support is available in #getbridge on Freenode IRC or the Bridge Google Group.

License

Bridge is made available under the MIT/X11 license. See LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Erlang 84.7%
  • Shell 9.1%
  • Perl 6.2%