Create big apps with Flask – part 5

Create big apps with Flask – part 5

Functional Testing vs Unit Testing When it comes to testing there are two different ways of performing such automated tests: functional testing and unit testing When doing unit testing you will be testing your app from a programmer’s perspective, on the other...
Create big apps with Flask – part 4

Create big apps with Flask – part 4

Unit Testing Unit Testing with Python and Flask is a pretty straightforward activity where you basically have to put yourself in your user’s shoes and test each user story. So, let’s say for example that you want to test the add user feature of your app,...
Create big apps with Flask – part 3

Create big apps with Flask – part 3

Welcome back to this series of tutorial on Flask and complex apps. The decorator pattern The decorator pattern is one of those patterns that nowadays we encounter in a variety of frameworks. From The Gang of Four’s book: Decorators Attach additional...
Create big apps with Flask – part 2

Create big apps with Flask – part 2

Hello and welcome to the second part of this tutorial. So let’s see how to structure our app. Given my experience with Symfony and Laravel as work tools, I decided to pick the things that I liked the most from them. As you can see I divided my app into bundles...
Load page and tab with jQuery

Load page and tab with jQuery

If you are using Divi or any tab system that does not use divs you might find useful this code that allows your users to click on a nav menu entry and then open the page and the tab desired with a nice scroll to top animation. The redirect to another page takes place...
Create big apps with Flask – part 1

Create big apps with Flask – part 1

Foreword This tutorial is meant for people coming from other languages than Python or from other frameworks than Flask At first glance When you come from another language or framework, learning Flask at first may be a time-consuming task. You will have to familiarize...