Over a million developers have joined DZone.

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

Download the Essential Cloud Buyer’s Guide to learn important factors to consider before selecting a provider as well as buying criteria to help you make the best decision for your infrastructure needs, brought to you in partnership with Internap.

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.

The Cloud Zone is brought to you in partnership with Internap. Read Bare-Metal Cloud 101 to learn about bare-metal cloud and how it has emerged as a way to complement virtualized services.

Topics:
azure ,bottle ,wsgi ,web app

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}