Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.11 KB

README.md

File metadata and controls

53 lines (37 loc) · 1.11 KB

Goliath Mongo Postgres Example

This is a simple toy example that accesses both mongo and postgres through a Goliath async webserver.

Much of the code was lifted and rearranged from these demos:

This version uses:

I have a version of this example running with activerecord-3 and pg here:

Setup

Setup Database

This sets up gmp_development with a simple 'partners' table, with a key of "a"

% cd bin % bash setup_db.sh % bundle install

Run server

% bundle exec ruby mongo_pg.rb -sv

forwarding example

% curl -v 'http://localhost:9000/horoscope?app=a'

missing key example

% curl -v 'http://localhost:9000/horoscope?app=b'