Friday, July 1, 2016

Horizon: A Scalable Backend Perfect for JavaScript Mobile Apps

Horizon is a scalable backend for cross-platform, JavaScript based mobile apps, especially those needing realtime functionality. It was built by the awesome people at RethinkDB and so uses RethinkDB as the default database. If you're not familiar with RethinkDB, it's an open-source database with realtime capabilities.

Horizon exposes a client-side API that allows you to interact with the underlying database. This means you don't have to write any backend code. All you have to do is spin up a new server, run it and Horizon will take care of the rest. Data is synced between the server and the connected clients in realtime.

In this tutorial you're going to build a Tic-Tac-Toe app with Ionic and Horizon. I'll assume that you're not new to Ionic and Cordova so I'm not going to explain Ionic-specific code in depth. I recommend you go check out the Getting Started Guide on the Ionic Website if you want a bit of background. If you want to follow along, you can clone the app repo on Github. Here's how the final app will look:

Continue reading %Horizon: A Scalable Backend Perfect for JavaScript Mobile Apps%


by Wern Ancheta via SitePoint

No comments:

Post a Comment