New Demo Project: SauceDB

Today I'm kicking off a new project for the purposes of demonstrating Ionic and IBM Bluemix. While I'm not sure I'll actually release this application (I'm building something I actually want, so I kinda want to), my intent here is to build a full application demonstrating multiple facets of Ionic with Bluemix handling the back end. Let me start off by talking about what this application actually does.

The App

I'm a huge fan of Untappd and Goodreads. For me, these apps help me organize two of my favorite passions in life - good beer and good books. (And hey, Budweiser, you can officially take your anti-micro-brew campaign and shove it where the sun doesn't shine.) Both sites/apps follow the same basic principle - they allow you to track and rate things are you consuming. I have pretty crap memory, so I find both apps to be incredibly useful. Both also include a social aspect to them that - honestly - I don't really care about. I do like to know what beers my friends are enjoying and what books they've read, but I typically talk about that in the real world. I can't honestly remember the last time I used either app to check what other people are doing.

My application, SauceDB, is basically a BBQ Sauce version of Untappd. The features will be:

  • Sauce stream (um, that sounds kinda gross): Essentially a 'feed' of the most recent sauce ratings. As I mentioned, I don't necessarily care much for the social aspect, so this app won't have "friends". Basically you see what everyone has posted. (And since this is a 'proof of concept' with few users, it will make it easier to see content.)
  • Add a sauce review: Sauces include a name, a company, your rating, and a description of the sauce. Optionally a picture as well. The app will recognize existing sauces and not add a new record for the sauce if it already exists.

I whipped up a quick prototype on paper first. Here is my completely incomprehensible attempt at drawing screens.

IMAG2260

I'm actually pretty impressed by how bad my drawing is. If I was a D&D character and Drawing was a skill, I'd have a -5 in it. In case you can't read my chicken scratch, the screens are:

  • Login
  • Feed
  • Feed item (ie, a sauce review)
  • Search to add a new review
  • New item (ie, adding a new sauce + review)
  • New review only (adding a review to an existing sauce

I don't create prototypes often, but I definitely see the value. Just typing out the list there makes me realize I don't have a page that is Sauce-centric, ie a Sauce with all the reviews. I went ahead and set up a "real" prototype using Ionic Creator.

Ionic_Creator

I essentially built all the screens you saw from the pen drawing above and added some basic interactivity. So for example, the login button goes right to the feed. Doing this was also helpful. For example, the 'feed' page (see the shot above) used a list view, but I'm pretty sure I'll switch to a card view to give the reviews more space.

Ionic Creator has multiple export options, including a way to use it as a seed for a new project.

shot1

I find the output of Ionic Creator to be a bit undesirable, so I used this in a new project just for the Creator output. I then Surged it up to a real site: http://jittery-bait.surge.sh.

The Tech

So what does my stack look like?

  • Obviously, Ionic. I've made no secret of my opinion that Ionic is the absolute best tool to use for building hybrid mobile applications with Cordova.
  • OpenFB, a Facebook API library by Christophe Coenraets. I've used ng-cordova-oauth in the past, but I just need FB now and I need a way to use their API as well.
  • Node.js running on Bluemix. This will essentially be a proxy to...
  • IBM Cloudant for the database.

Some "possible" stuff I want to add too - time permitting:

  • Ionic Analytics
  • Pictures (no idea where I'll store the file blobs yet)
  • Push (maybe a notice for every new review - again - this will be a pretty low used app)

I'll also be sharing everything I've built up on Github. My code base is currently a bit messy, so the repo is empty, but it will be here: https://github.com/cfjedimaster/SauceDB.

Like This?

If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can also subscribe to the email feed to get notified of new posts.

See Also