In this blog, I will demonstrate how quickly we can build a Web app in Azure using Bottle. If you are new to Bottle, here is the definition from the website:
Bottle is a fast, simple and lightweight WSGI micro web-framework for Python. It is distributed as a single file module and has no dependencies other than the Python Standard Library.
- Routing: Requests to function-call mapping with support for clean and dynamic URLs.
- Templates: Fast and pythonic built-in template engine and support for Mako, Jinja2, and Cheetah templates.
- Utilities: Convenient access to form data, file uploads, cookies, headers, and other HTTP-related metadata.
- Server: Built-in HTTP development server and support for Paste, Fapws3, Bjoern, Gae, CherryPy, or any other WSGI-capable HTTP server.
Let's Get Started
Follow these steps:
Go here and log in with your Azure credentials.
Now, on the home screen of the Azure management portal, select New -> Compute ->Web App ->From Gallery.
Now find the Web Apps from the gallery that are shown below. Scroll down and find Bottle and click the Next arrow icon.
Now configure your web app as shown below by giving the URL and Webscale in the site settings option.
The Azure management portal takes some time to do its thing, and then the link is available in the management portal.