Introduction
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.
To complete this blog, you need to have an Azure account. If you're new to Azure, I recommend reading Introduction to Microsoft Azure.
Let's get started
Follow these below steps one by one.
Step 1
Go here and log in with your Azure credentials.
Step 2
Now on the home screen of Azure management portal, select New -> Compute ->Web App ->From Gallery.
The following window will appear.
Step 3
Now find the Web Apps from the gallery that are shown below. On that scroll down and find Bottle and click the Next arrow icon.
Step 4
Now configure your web app as shown below in the screenshot. By giving the URL and Webscale in site settings option.
Step 5
It takes some time in Azure management portal, and finally the link is available in management portal.
Step 6
The page is displayed in the Web browser.