Remote Santa with MongoDB

Wednesday, December 30, 2009

Some Christmas are far from home, and today, that's not excuse to not offer something for all lovedd one: major cultural content are now available only on internet, and it would be impossible to find them in a real-world shop even if you'd like to buy them.

"Youri Gift closed"

Disclaimer: yes, I make promotion for downloading copyrighted content, not because it's unlawful, but because some of this content is so good that has to be shared.

System

I'm far from you, but you're not far from internet, so I'll make you an internet page where you'll be able to check your gift.

"Youri Gift open"

For it to be more exciting, I've choose a new DB technology I wanted to work with: MongoDB.

And because I just had 24h to complete the task, I've choosed the simplest web framwork I know: Sinatra.

Concepts

One of the most interesting stuff going from this idea is the potential it gets, on the idea side as on the technical side:

  • MongoDB: use dynamic attribute to make a form to add gifts, gift will be published only when all needed attributes are inside the document
  • MongoDB: use GridFS to store the images for the avatar, the wrapping paper or the gift image. It could even be used to send a non-processed image and process it on the server side
  • jQuery: use autosave plugin to avoid clicking on any button on the gift page
  • Facebook: deploy the same app with a Facebook gateway, people could create gift page for their friends
  • Gift content: add more content types for the gifts, I'll sure want to be able to send video-gift somedy :)
  • Gift content: already downloaded gift, and use html5 localStorage to directly send the gift to the receiver so he'll be able to receive it on the go if the page is loaded at the beginning of the day (on the 24th)

This entry was published on Wednesday, December 30, 2009. Articles published around the same time can be found in the archive.