This is the third of three posts about building a JSON API with Flask. Make sure you start with part 1 and part 2. In the first post, we used a custom base SQLAlchemy class to serialize and deserialize database models to and from JSON. The second post created a RESTful API listing and updating users. Now we’re ready for ...
Read More »
Part 2: Building a Flask RESTful API
This is the second of three posts about building a JSON API with Flask. Part 1 arrived yesterday and part 3 is arriving tomorrow. In the previous post we learned how to serialize SQLAlchemy models to/from JSON. Now let’s use that to build a RESTful JSON API with Flask. What is a RESTful API A RESTfu API is a website ...
Read More »AngularJS Change Button Text Example
Hello readers, in this tutorial, developers will learn what AngularJS is and how to change the button text in angular. 1. Introduction AngularJS is a JavaScript MVC or Model-View-Controller framework developed by Google that lets developers build well structured, easily testable, and maintainable front-end applications. Before we start with the creation of a real application using the angular framework, let ...
Read More »Part 1: SQLAlchemy Models to JSON
This is the first of three posts about building a JSON API with Flask. Part 2 and part 3 arrive tomorrow and the day after. I’ve seen a lot of questions on StackOverflow about how to turn SQLAlchemy models into JSON. When building a JSON API with Flask and SQLAlchemy, you end up writing a lot of boilerplate api code ...
Read More »Backbone.Events+Promises+async/await is a great combination for building JavaScript apps
At the risk of being a contrarian, I’d like to show in this article how exactly can the Backbone’s Events model be combined with the more modern constructs of Promises and async/await to build a killer app using JavaScript. First, let’s try to understand why do we need these constructs for asynchronous programming when JavaScript itself is a mostly asynchronous ...
Read More »The Right Way to Architect Single Page Web Applications
Lets face it, Web Apps are a complex and complicated beast, both on the front end and back end. The reason we had to come up with so many frameworks and libraries (angular/backbone/react/vue/marionette/require.js/etc.) is that the whole process is quite difficult and convoluted. Once your app starts to scale in complexity, even the best of ideas and best practices in ...
Read More »AngularJS Get Current Date Time Example
Hello readers, in this tutorial, developers will learn what AngularJS is and how to display the current date and time using the angular filter. 1. Introduction AngularJS is a JavaScript MVC or Model-View-Controller framework developed by Google that lets developers build well structured, easily testable, and maintainable front-end applications. Before we start with the creation of a real application using ...
Read More »How to create a Server-less Google Drive client using only HTML and JavaScript
A few days ago, I had to work on a project of this kind and the information and documentation available on this topic was quite bewildering. As a result, I decided to write this article in order to make everything available at one place. Almost everyone knows about the Google API Python Client (and similar others in Java, PHP, etc.) ...
Read More »AngularJS ng-repeat counter Example
Hello readers, in this tutorial, developers will learn what AngularJS is and how to use the AngularJS ng-repeat counter in the angular applications. 1. Introduction AngularJS is a JavaScript MVC or Model-View-Controller framework developed by Google that lets developers build well structured, easily testable, and maintainable front-end applications. Before we start with the creation of a real application using the angular ...
Read More »