Skip to main content

Posts

Showing posts with the label REST

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...

A developer's sacrifice - why did I say bye to my first love

I love writing code and during my undergraduate studies I had a chance to write code in many programming languages and while I enjoyed working with all of them, there was one language that I fell in love with. I call it first love and thankfully I had a chance to code in that language for most of my career after I finished uni. I worked with it for years and years, it would be my language of choice for any new project...until recently. In the last 12 months, certain (almost unavoidable) circumstances lead me to a choice which meant, I had a part ways with my first love for this particular project. In this post I will talk about what my first love was, the circumstances that made me part ways with it and what did I use instead of it. My First love During my undergraduate studies and when I was learning about programming, I was exposed to C++ , Java and C . I did not mind C so much, C++ I did not like it at the time and I loved working with Java. Yes yes, I know it's very ver...

Java RESTful Backend for an app about the Galaxy's finest smugglers (SW)

In this post, I aim to show how to build a Java RESTful web service or a Java Restful backend that can be used(consumed) by a mobile app or a web site. Unlike my pervious posts where I explain a technical solution, I am going to structure this one differently. In this one I am going to try and tell a developer's story through it. Background Our story picks up from the time Cpt.Danko (Danko) returns to work after being away for 3 months on medical leave. At this point all we know about Danko is that before going on leave he was just a developer, all he did was write code the way he was asked to and he had very little responsibility. On returning to work, he didn't realise that he was no longer just a developer but he was actually "promoted" to a full-stack developer and had heaps(lots) more responsibility with the same old (low) wage. This "promotion" caught him by surprise as after being away for 3 months he expected to have the same level of responsi...

Ionic app with a Django backend: Part 2 - The Ionic app

In this post, I will continue from where we left in Part 1 of this series.  In part 2, I will talk more about the front-end side of things. Ahh, I have a background in web development, hence I call this front-end, but that's not the most accurate thing to say in these modern times. So the right way to say this is, I will talk about the Ionic app in this Github repository(IonicAppWithRestBackend) in more details in this post. So what did we do in part 1? In part 1, we got to the point of running our backend on the web server that ships with Django . To refresh your memory, this is how we got the backend server running, Clone the repo git clone https://github.com/cptdanko/IonicAppWithRestBackend Navigate to the backend project directory cd IonicAppWithRestBackend/backend/python_django/restBackend/ Note: if you are using Windows, you may want to change "/" to "\" in the above command. Once there you can run the backend server with the follow...

Ionic app with a Django backend: Part 1 - The backend

In this post, I will be talking about my latest Github repository(repo);  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. Note: Once I started writing this post, I realised that it would be a really long blog post, so I decided to split it into individual parts in hopes that it's an easier read. In part 1, I will be talking about what the backend solution is and how to get it running. Motivation In 2014, I started working on a project with someon...