Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.14 KB

Notes.md

File metadata and controls

35 lines (23 loc) · 1.14 KB

Storage Notes

Branches merged.

//Get your mongodb username and password
heroku config

//collections->add

//click on collections

//install sudo gem install rerun
rerun foreman start

//throw os x notifications
//http://osxdaily.com/2012/08/03/send-an-alert-to-notification-center-from-the-command-line-in-os-x/

sudo gem install terminal-notifier
terminial-notifier -message "hello world"

//command-line posting
curl -X POST -H "Content-Type:application/json" https://www.mongolab.com/api/1/databases/heroku_app7564546/collections/twitter?apiKey=5088aa82e4b0a116b09050a1 -d '{"asdf":true}'

//read
curl -X GET https://www.mongolab.com/api/1/databases/heroku_app7564546/collections/twitter?apiKey=5088aa82e4b0a116b09050a1

//create table?
curl -X POST -H "Content-Type:application/json" https://www.mongolab.com/api/1/databases/heroku_app7564546/collections/random?apiKey=5088aa82e4b0a116b09050a1 -d '{"randomItem":123}'

//get tables
curl -X GET -H "Content-Type:application/json" https://www.mongolab.com/api/1/databases/heroku_app7564546/collections/random?apiKey=5088aa82e4b0a116b09050a1