Deploying a Python Flask application

Deploying a Python Flask application

Serverless is the new cool kid. Well, might not be “new” new, but considering that still the majority of web applications are monolithic…

Serverless is the new cool kid. Well, might not be “new” new, but considering that still the majority of web applications are monolithic and quite a few (compared to serverless) are micro-services, its still quite a mysterious technology which often either overlooked or overdone. Some companies are migrating some of their more “_serverlessish_” functions to cloud as serverless functions, and the use cases are becoming more and more evident in the technology business.

This particular post will be not on the basics of serverless concepts nor any of the tools used here. But I will be brushing on the usability of each of these services and how together these can make a match made in heaven.

Well, first you need the Python Flask application itself. So let’s create a very simple Flask app.

First, it’s advisable (or rather necessary) to have the virtual environment setup. So, this assumes that it’s installed. if not just run;

pip install virtualenv

navigate to the project directory.

virtualenv some_env

source some_env/bin/activate

once, the virtual environment is created and you have sourced to it. Install necessary pip libraries in the environment. What you will need essentially is only Flask for this tutorial, but it does not matter what are the other libraries you will be using if you have them in the requirements list file (ie. requirements.txt).

python circleci flask serverless-framework aws-lambda

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Getting Started with AWS Lambda, Python and Flask

Cloud Computing is where the market is migrating. Therefore, we’re here to build an application by leveraging the power of cloud services and see how efficiently we can monitor it.

Serverless Express – Easy APIs On AWS Lambda & AWS HTTP API

Serverless Express enables you to easily host Express.js APIs on AWS Lambda and AWS HTTP API. Here is how to get started and deliver a Serverless Express.js based API with a custom domain, free SSL certificate and much more!

Serverless COVID-19 Data Scraper with Python and AWS Lambda

Step-by-Step Tutorial: Scheduling your Python Script with AWS Lambda

Git Actions with AWS Lambda Serverless Python Functions and API Gateway

Modernizing web application development and deployment. Let's describe a phase 1 AWS architecture including Github, API Gateway, and AWS Lamba python functions. This represents an initial tutorial exposing developers to the AWS cloud adoption learning curve. Outline:

Serverless APIs with Python, AWS Lambda & API Gateway

Serverless APIs with Python, AWS Lambda & API Gateway