Skip to main content

Posts

Showing posts with the label web application

REST API using Django for Ionic app

In this post, I will be talking about my latest Github repository  IonicAppWithRestBackend  and delve into details about what it is and the problem it aims to solve. Introduction The idea of this repo is to provide code samples for both the backend and front-end for an   Ionic app   that communicates with a   REST ful backend. The aim is to bring many disparate aspects of building a solution like this(hybrid app that talks to a REST backend) and to be able to see most of them as one complete solution. Also, a solution such as this ensures you can test your Ionic app locally during development. Still not clear? read on to find out what I mean. Motivation In 2014, I started working on a project with someone which involved building a mobile app that fetches/sends data to a REST backend. My associate did not have a very technical background…I mean she knew a lot more than people from her academic background would but she wasn’t a programmer. Therefore I wa...

Parse JSON objects in Swift from WKWebView

Upto this point, I had only worked with the UIWebView in iOS, even though I had heard/read about the new WKWebView . I had only read good things about it but given the limited resources at my startup, working with WKWebView was a lower priority. A few weeks ago, the time was right for me to have a more in-depth look at the WKWebView and while learning more about it I realised something. I realised that while there are a ton of useful tutorials out there, almost none of them covered it with the depth or all the use cases that I was after. One example of missing information or a use case is, if we receive a json object from the webview, how do we parse it in Swift? In this post I will be talking about how to parse json data in Swift sent from web content hosted in a WKWebView of an iOS app. Background As seen from HTMLStarterAppWithSwift , my interest in the webview is not for showing content hosted in a website but more towards working with content hosted locally i.e. a nati...

Open source HTML5 visualisation library to draw charts on the web (morris.js)

At work(ongoing,full-time contract) we use the Google Visualizaton  library for our various data visualisation needs. So naturally when I was building this tool to streamline the process of Post Traumatic Amnesia(PTA) assessment, my first thought was to use Google Visualization library for the tool's data visualisation needs. However that was only till I realised that the tool needs to work offline. Google Visualisation is a very good library but it only works when the the web app is online, so after some looking around I found a tool that works offline too i.e. morris.js . It uses the fantastic Raphael.js  library to render beautiful SVG based charts, on the web. Problem The objective is to visualise data in a web application, so it can be easily interpreted without having to go through raw numbers. The web application needs to be demoed on....say a laptop and the places where it could potentially be demoed may not have internet connectivity. It could also be in a plac...