application

2 results

Using MongoDB with OpenShift

This is a guest post by Jimmy Gurerro at OpenShift If you’ve attended any of the MongoDB conferences that 10Gen has put on in the last few months, you hopefully got a chance to check out two fun OpenShift talks: Grant Shipley’s “Mobilize MongoDB! - Developing iPhone and Android Apps using Appcelerator and OpenShift” and Steve Citron-Pousty’s “ Get Your Spatial On with MongoDB in the Cloud .” For those of you who haven’t caught Grant’s talk, he’s serialized it in a four part blog series on 10gen.com . But, in case you are just too damn lazy to read the blog posts, 10Gen will be hosting a webinar version of the “Mobilize MongoDB!” talk on Tuesday, August 28th at 1 PM Eastern. You can sign up here to reserve your spot. In the blog series, Grant walks you through how to build a mobile application from scratch using a sample application he wrote called “ BeerShift. ” Grant came up with the idea for the application while preparing for a speaking gig at MongoDB Brussels . He was looking for an app that would allow him to make informed decisions about the beers he might order in Belgium. He was also interested in being able to quickly get a description of the beer, the location of the brewery in was brewed at and any taste ratings. Like any application design, there was some feature creep before it was completed. Everyone wanted a social element added to it, so that other folks using BeerShift could rate beers, note the location in which they drank them and track each others consumption. In Part 1 of the blog series Grant kicks it off with an overview of what the BeerShift application is and what it’s going to take to develop it. Part 2 details the required components and software that are going to be required to get BeerShift to run on iPhone and Android. He also shows you how to get the backend systems up and running, including MongoDB. Part 3 covers the development of the backend REST services and getting everything running on OpenShift. He also shows you how to register for the brewerydb.com API key so that the backend can make remote REST calls to look up beer and brewery information. He concludes the series with Part 4 by walking thorugh the application code in Appcelerator’s Titanium Studio . The other great talk that’s not to be missed if you get a chance to hear it is Steve’s “Get Your Spatial On!” Using the command line and a fair bit of chutzpah he shows you how to build your own version of foursquare in the cloud using MongoDB’s spatial functionality. If didn’t make it out to MongoSF this year, you can check out the recording of the talk here . And by the way, if haven’t already signed up for OpenShift, boy are you are missing out! Specifically on 1.5 GB of RAM and 3 GB of Storage to run MongoDB and your apps. All it takes is an email address and a few clicks to get MongoDB and your app in the cloud. Looking for additional resources on how to make the most of MongoDB in the cloud? Check out these handy links and the OpenShift docs . Got questions? We have answers! Post them in the OpenShift forums so we can help you out! Tagged with: openshift, Red Hat, Red Hat Enterprise Linux, Cloud Hosting, application, apps, beershift, MongoDB, Mongo, NoSQL, Polyglot persistence, 10gen

July 26, 2012

Mobilize Your MongoDB: Building MongoDB Mobile Apps with OpenShift PaaS

This is the first in a 4-part series by Grant Shipley, Cloud Evangelist for Red Hat’s OpenShift Platform-as-a-service. Grant’s series will cover the development of “Beershift”, a mobile app for iPhone and Android built using Titanium, OpenShift and MongoDB. MongoDB makes a great companion to this mobile application given its ability to shard store JSON documents with little data manipulation required. In this blog post, we will go over the background of the application and discuss the features we plan to build. Background: I started developing iOS based applications shortly after the arrival of the iPhone on the market. Having been a Java and PHP developer for my entire career, switching to objective-c was a tough challenge for me. I had to remember basic programming methodologies and patterns that I haven't used since college. It took me nearly two months of work at the cadence of 30-40 hours per week to build my first iOS application. To my delight, after releasing the application, the market for the application was larger that I had anticipated. Users were writing great reviews and requesting more features. Shortly after releasing my first iOS based application, Google decided to enter the smartphone market with their android based sdk and devices. This should have been great news for most software developers but for me, a part time mobile developer, it wasn't. I now had users requesting my application for android devices as well as for the new iPad and other tablets that were hitting the market. I didn't have the free time to port my application to the android sdk as it would have required another two months of software development as well as maintaining two separate code streams for patches and updates. About 8 months ago, I heard about a company called Appcelerator and their Titanium SDK . This SDK would allow me to code using javascript but target native UI controls for an array of devices. This sounded like heaven as most of the applications that I write are productivity or novelty based applications that don't rely heavily on 3D graphics. I set out to learn the titanium SDK and was able to develop the BeerShift sample application over a period of two days. About BeerShift: At OpenShift , we enjoy local craft beers and the social aspects of having a pint while discussing the latest trends in software development and deployment. One night, over a pint, we thought it would be cool if we could quickly read a description of the beer and brewery before ordering. We kept discussing the app and of course feature creep started setting in. By the end of the night, we decided to develop a mobile-based application that would allow a user to search for beers, and then log when and where they drank it. Because the team was split between using iOS and Android based phones, we needed it to work on both devices and sync the information via a backend service. Of course, all of this had to be available via the web as well. This was a great opportunity for me to learn Titanium so I set out to develop the application. The biggest unknown was where to get a freely available database of beers that I could search. I researched this question and did some google searching but didn't really come up with any providers that met my needs. Luckily, while speaking at a PHP Users Group in Raleigh, NC, I met a couple of guys who owned a startup called brewerydb.com . With their growing repository of beers and breweries, it had all of the information that I needed in order to develop the sample app. I invited them out for a pint after the user group and we discussed the details. A few days later I had an API key and was ready to get my Titanium Javascript on. Want a quick preview of what we will be building? Check out the video showing the application. BeerShift has a tabbed based UI that consists for 4 main screens. Drink, Drank, Kegstand, and Settings. The settings tab presents the user with username and password input fields. If the username does not exist in the MongoDB database, the user will be prompted if they want to create a new user. The drink tab is the heart of the application. This tab allows the uses to enter in a beer name and will return a result of all beers and breweries that match the search string. The results are retrieved via a REST API call to the openshift server and presented to the user in a table view. The user can select a a beer from the list and then select to ...Drink It“. Once the user has decided to log drinking a beer, the drinking event will be recorded on both the drank tab and the keg stand tab. The keg stand tab will allow the user of the application to view the 50 most recent beers drank by any user of the application. In the next blog post of this series, I will detail the installation of applications and tools needed to begin with development of the BeerShift application. Source Code: All of the source code for this application, including the backend REST API and MongoDBa> integration, is available on github.com/gshipley Tagged with: red hat, open shift, openshift, mobile, apps, application, titanium, sdk, java, objective c, open source, breweries, beer, brewerydb, MongoDB, Mongo, NoSQL, Polyglot persistence, 10gen

May 15, 2012