Over a million developers have joined DZone.

Anvil App Platform: Using GitHub as a Datastore

See how an app transforms GitHub into a mini database, perfect for storing less-than-essential documents.

· Database Zone

Build fast, scale big with MongoDB Atlas, a hosted service for the leading NoSQL database. Try it now! Brought to you in partnership with MongoDB.

Literally one day after the last blog post on Anvil (and their news announcement), Ian and Meredydd did a proof of concept that made Anvil retrieve/store data from/to GitHub. Specifically, it was a JSON document. You are not going to rest a transactional database on this design, financial or otherwise, but you might be super happy for a “Very Small Data” application. Or one that is for editing configuration — refer my Config as Code category.

On the Anvil Works site is a blog post about it. That blog entry details what/how they've done this ultimately very simple thing. They don’t show the diff, though. In a technology that is using SCM as a data store, after bumping the HEAD revision of a document programmatically, you’re going to want to check out the change you just made:

"Yay!" indeed.

As well as dealing with GitHub’s APIs for working with documents (as data), it’d be great to see these guys enhance their own Git capability for storage, and add index/view APIs for a mini-CouchDB experience.

This type of solutioning is going to be part of a wave of cheaper internal enterprise apps again, and maybe also apps online for strangers where cheap data capture is more important that a 100% ‘just so’ UI experience.

Now it's easier than ever to get started with MongoDB, the database that allows startups and enterprises alike to rapidly build planet-scale apps. Introducing MongoDB Atlas, the official hosted service for the database on AWS. Try it now! Brought to you in partnership with MongoDB.


Published at DZone with permission of Paul Hammant, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}