{"id":15690081,"url":"https://github.com/stephenlb/pubnub-mongo-pipe","last_synced_at":"2025-05-07T23:38:35.406Z","repository":{"id":6263446,"uuid":"7496500","full_name":"stephenlb/pubnub-mongo-pipe","owner":"stephenlb","description":"PubNub MongoDB Pipe! Connect your iOS Mobile Phone and Website to all INSERT events on MongoDB with PubNub Pipe.  Simply follow the instructions in the README.md file to setup MongoDB and prepare for the Ruby pipe process.","archived":false,"fork":false,"pushed_at":"2013-05-01T04:03:37.000Z","size":882,"stargazers_count":8,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T23:38:31.662Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stephenlb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-08T06:00:44.000Z","updated_at":"2019-09-28T15:29:59.000Z","dependencies_parsed_at":"2022-08-20T23:40:33.146Z","dependency_job_id":null,"html_url":"https://github.com/stephenlb/pubnub-mongo-pipe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenlb%2Fpubnub-mongo-pipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenlb%2Fpubnub-mongo-pipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenlb%2Fpubnub-mongo-pipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenlb%2Fpubnub-mongo-pipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephenlb","download_url":"https://codeload.github.com/stephenlb/pubnub-mongo-pipe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973607,"owners_count":21834104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T18:07:13.124Z","updated_at":"2025-05-07T23:38:35.385Z","avatar_url":"https://github.com/stephenlb.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Streaming Geo Coordinates from MongoDB to iPhone with WebSockets and PubNub\n\n![PubNub MongoDB Pipe to iOS iPhone via WebSocket](/media/pubnub-mongo-pipe-logo-transparent.png)\n\n## Get your PubNub API Keys\n\n[http://www.pubnub.com/](PubNub)\n\nFirst you'll need to get your PubNub API keys by visiting\n[http://admin.pubnub.com/](PubNub Account Dashboard)\n\n## Install MongoDB\n\n#### Setup MongoDB - OSX\n```\ncurl http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.2.2.tgz \u003e mongodb-osx-x86_64-2.2.2.tgz\n```\n\n#### Uncompress\n```\ntar xvfz mongodb-osx-x86_64-2.2.2.tgz\n```\n\n#### Add default MongoDB Directory\n```\nmkdir -p /data/db\n```\n\n#### Run MongoDB Server\n```\nmongodb-osx-x86_64-2.2.2/bin/mongod\n```\n\n#### Run MongoDB Interactive JS Console\n```\nmongodb-osx-x86_64-2.2.2/bin/mongo\n```\n\n## Install Ruby Packages\n\n\u003eMake sure you have Ruby 1.9.3 installed.\n\n```\ngem update --system\ngem install pubnub\ngem install mongo\ngem install mongopipe ## MongoDB Pipe\ngem install bson_ext\n```\n\n## Run PubNub MongoDB Ruby Pipe\n\nYou may run the Pipe by issuing this simple command\nthen follow the instructions that print out to test.\n\n#### Run Pipe via CURL\n\n```\nruby \u003c(curl http://goo.gl/bUlUh)\n```\n\nYou can also download the Pipe file first then run it locally.\nThis basically will save the Ruby source code file to your \nlocal hard drive and you can execute it anytime you need to.\n\n### Download First\n```\ncurl http://goo.gl/bUlUh \u003e pipe.rb\n```\n\n### Then Run Locally\n```\nruby ./pipe.rb\n```\n\nFollow the Output Instructions.\nThat's it!\n\nThe following section only shows a sample insertable document that\ntriggers replication broadcast to the map.\n\n### Mongo Console\n\nNext go back to your mongodb console and type the following commands:\n\n```javascript\nuse test\ndb.cap_collection.insert({ latlon : [ 1.5, 2.0 ] })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephenlb%2Fpubnub-mongo-pipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephenlb%2Fpubnub-mongo-pipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephenlb%2Fpubnub-mongo-pipe/lists"}