Build Offline First apps that leverage the geospatial capabilities of IBM Cloudant.
The Location Tracker demo app uses geolocation to track and map user movements. The app uses an Offline First approach, storing the geolocation data locally on the device using Cloudant Sync or PouchDB, and then sync’ing this data with IBM Cloudant. The Location Tracker demo app is available as a native mobile app or as a web app. Both versions share a mobile backend built with Node.js.
The Location Tracker native mobile app demonstrates to Swift developers how easy it is to integrate IBM Cloudant into an iOS app in order to track, store, and query locations. Since the app uses an Offline First approach, its core capabilities continue to work regardless of the app’s network connectivity status. The Location tracker demo app provides architectural guidance on scaling your app to support millions of users. See the projects featured here for the code.
The first iteration of the Location Tracker web app demonstrates building the app as a CouchApp, which can be served directly from IBM Cloudant or Apache CouchDB, and leverages PouchDB and the HTML5 Geolocation API on the client side. The CouchApp is then refactored into a single-page application (SPA) which is deployable to IBM Bluemix. From there, a Node.js middle tier is added which provides user management functionality.