Skip to content

bruchu/goliath_mongo_postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

Goliath example using mongo and postgres-pr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published