Skip to content
This repository was archived by the owner on Apr 18, 2022. It is now read-only.

Latest commit

 

History

History
43 lines (30 loc) · 1.55 KB

README.rst

File metadata and controls

43 lines (30 loc) · 1.55 KB

BridgeBeam

What is it?

BridgeBeam is a Python application built around Bottle that maintains state using sqlite3 and has three distinct endpoints.

  1. / This is the home page that you use to control BridgeBeam (a.k.a webui)
  2. /api/v1/ These are the resources being hit by the AJAX client on the webui or other API consumers
  3. /twiml/ These resources are in twiml format made specically for Twilio callbacks

How do I install it?

To start, you will want to install the module:

$ sudo python ./setup.py install

Then you can configure and start the server with these commands:

>>> # Import the bottle application
>>> from bridgebeam import application
>>> # Configure some variables
>>> application.config.Twiml.callback_base_url='http://somedomain.com:8080'
>>> application.config.Twilio.account_sid='AC3813535560204085626521'
>>> application.config.Twilio.auth_token='2flnf5tdp7so0lmfdu3d7wod'
>>> application.config.DB.path='/var/lib/bridgebeam/bridgebeam.db'
>>> # Import the routes that bind to the bottle application
>>> from bridgebeam.controllers import *
>>> # Start the application server loop
>>> application.run(host='0.0.0.0', port=8080)
Bottle v0.11.4 server starting up (using WSGIRefServer())...
Listening on http://0.0.0.0:8080/
Hit Ctrl-C to quit.

There is a working sample included named run_server.py that can also be loaded with mod_wsgi for easy deployment on your favorite web server.