bam 0

Pow.cx for Django

4 years after MIT

Bam!

Bam is like Pow, but for Django and friends.
Check it out, but probably don't use it yet.

Installation

  1. Bam currently depends on Dnsmasq.
    Installing and configuring it is simple:

    $ brew install dnsmasq
    $ echo "listen-address=127.0.0.1" >> /usr/local/etc/dnsmasq.conf
    $ echo "address=/bam/127.0.0.1" >> /usr/local/etc/dnsmasq.conf
    $ sudo cp /usr/local/Cellar/dnsmasq/2.61/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons
    $ sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
  2. Forward port 80 to Bam:

    $ ipfw add fwd 127.0.0.1,30559 tcp from any to me dst-port 80 in
    $ sysctl -w net.inet.ip.forwarding=1
  3. Clone Bam via GitHub for now. It's not on PyPi yet.
    You'll probably want to create a virtualenv first.

    $ git clone git://github.com/adammck/bam.git
    $ cd bam
    $ ./bam.py

    That's it. There's no fancy launch script yet. I know, I know.

Usage

Once you're up and running, adding an app is easy.
Symlink it into ~/.bam, and Bam takes care of the rest:

$ cd ~/.bam
$ ln -s /path/to/myapp

Your app is now available at http://myapp.bam.

Virtualenv

To launch an app in a virtualenv, create a file named .venv containing the path to the virtualenv in the project root. For example:

~/.virtualenv/myapp

Environment Variables

To configure the environment in which an app is launched, create a file named .bam-vars containing one variable per line in the NAME=VALUE format in the project root. For example:

SECRET_KEY=aaaaaa
TWITTER_CONSUMER_KEY=bbbbbb
TWITTER_CONSUMER_SECRET=cccccc

License

Bam is free software, available under the MIT license

Related Repositories

bam-readcount

bam-readcount

count DNA sequence reads in BAM files ...

HTSLIB.jl

HTSLIB.jl

HTSLIB.jl is a julia wrapper of htslib for accessing common high-throughput sequ ...

ngs_server

ngs_server

Ultra Lightweight NGS (BAM/VCF) Server ...

mergesam

mergesam

Automate common sam & bam conversions ...

Panda3D-Bam-Exporter

Panda3D-Bam-Exporter

Blender plugin to export to the .BAM format, used by Panda3D ...


Top Contributors

adammck