Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryandotsmith/rack_createdb

Rack app for creating postgres databases on localhost
https://github.com/ryandotsmith/rack_createdb

Last synced: 2 months ago
JSON representation

Rack app for creating postgres databases on localhost

Awesome Lists containing this project

README

        

# Purpose

I am using this app to share my database to the attendees of my training session at Red Dirt Ruby Conf.
Each client that sends a request to this server will have a database provisioned for them. I am keeping
track of the database based upon the senders IP Address.

# Useage

## Server

rackup

## Client

# if server ip = 10.0.0.1

curl http://10.0.0.1

# => postgres://red_dirt_user:[email protected]/red_dirt_database_1