I’ve started to put some of the technology pieces together, but I’m still, very much in a prototype-, spike-mode. Per usual, I’m kind of stuck on the visuals for the website. I know what I want; I’m just not sure how to get there from here.
InK - Interface Kit
I don’t remember where/when I found it, but I’m going to be using InK for my presentation layer. It includes a lot of nice things out-of-the-box, but the main one is the “responsive” design.
And while it does Grids differently, possibly easier and more straight forward, I think my presentation is at most two columns. The initial iterations will only use a single column.
I probably need a UX/Data design person to help me layout all of the information I plan on presenting; it’s going to be dense. While there’s a lot of data to present I don”t want the UI to feel cluttered.
Naturally, since this website/application is going to be focused on Battlefield3, I’m in need of some military-type images.
I have found some I plan on using; I also want to select one for the site’s background. However, from a suggestion, I was able to find quite a few interesting pictures on DeviantArt.
Ok, the interesting bits; sadly I haven’t dug too deep yet into padrino and the functionality is brings to the project. I’ve generated my skeleton application. I’ve read the docs. I even implemented a PagesController:
1 2 3 4 5 6 7 8 9 10 11
I’m using Sequel as my ORM. The connection configuration was new:
1 2 3 4 5 6 7
I had to create a PostgreSQL Login Role, password protected, of course. I had to manually add that to the connection information. And, while I didn’t try without, I did add the port information to the connection string.
Sequel also implements migrations:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 3
If you’ve used ActiveRecord then nothing should jump out at you, just the syntactical differences. And I’m not sure how I feel about the (apparent) sequential numbering of migrations.
And the Model doesn’t implement any behavior over and above what Sequel
provides. Padrino also allows you to put your models in several different
locations, depending on your needs. It seems this
allows models to be shared across implemented, mounted applications.
There are several different files that got generated but I’m not listing them here because I haven’t changed them.
Here are the Specs that got generated when I generated my controller and model:
1 2 3 4 5 6 7 8 9 10 11
1 2 3 4 5 6 7 8
Again, very vanilla because I haven’t added any extra behavior. One note, though,
I did change the controller spec from
== "Hello World" to
=~ /Hello World/
because I started to implement my InK-inspired layout.
I have quite a few things to do before I can create Version 0.0.0. I still need to implement the mechanism to call the BF3 Stats API. I need to learn more about Sequel in order to know what can and can’t be done via the ORM. I need to implement authentication; I’m leaning towards OmniAuth Identity and support for Twitter, Facebook, and Google+ OAuth.
I guess I should develop some kind of Product Road Map; would probably help me stay on task.