Building Web Apps in Azure Using Bottle

DZone 's Guide to

Building Web Apps in Azure Using Bottle

This quick tutorial will run you through the process of using Bottle to make apps in Azure.

· Cloud Zone ·
Free Resource

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:

Step 1

Go here and log in with your Azure credentials.

Step 2

Now, on the home screen of the Azure management portal, select New -> Compute ->Web App ->From Gallery. 

Step 3

Now find the Web Apps from the gallery that are shown below. Scroll down and find Bottle and click the Next arrow icon.

Step 4

Now configure your web app as shown below by giving the URL and Webscale in the site settings option.

Step 5

The Azure management portal takes some time to do its thing, and then the link is available in the management portal.

azure, bottle, web app, wsgi

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}