Deploy your Flask API to any #serverless Cloud Platform using this Simple Pattern
▻https://hackernoon.com/deploy-your-flask-api-to-any-serverless-cloud-platform-using-this-simple
I’m going to demonstrate how to make a Flask app serverless without locking you into any tooling or cloud platforms. It doesn’t require any application code changes or serverless frameworks so you can continue to develop locally like you always have.Ideally you should re-architect your application into small discrete functions to take full advantage of serverless. However, if you want to migrate a legacy application or just a quick way to get started with serverless then this is a good approach to take.Create Flask ApplicationWe are going to create a Flask application for Python3.6+.SetupFirst create a virtual environment and install dependencies.$ python3 -m venv env $ source env/bin/activate$ pip install flask flask-lambda-python36 http-promptApplication CodeAdd the code below which (...)