DEV Community

Cover image for Getting started with web dev using Flask
Christopher Harrison for Microsoft Azure

Posted on

Getting started with web dev using Flask

This article is part of #PythonFunBites.

There's a lot of different web dev frameworks out there, and it can be confusing to figure out which to use when. One of my favorites is Flask because of the fact it mostly gets out of the way, allowing you to do almost whatever you want with it!

Flask is defined as a "micro-framework", meaning it fills the mandatory requirements of a web framework and not much else. You'll notice Flask has a great routing engine for managing different user requests, a templating engine called Jinja for rendering HTML on the server, and a couple of other core features. After that, it's really up to us as developers!

This makes Flask a great choice for creating front-ends for machine learning models you've created or other AI implementations, or scenarios where you have an API already created which needs a user interface. You'll also notice you can get up and running with just a few lines of code.

I created a video highlighting how to perform the installation and create a Hello, world application using templates.

It's also worth highlighting the fact Visual Studio Code makes for a great editor, and you can deploy all these projects to Azure if you so desire.

If you're looking for a lightweight framework on which to build your web applications, Flask can be the perfect option!

Watch for content on all things Python at Microsoft between the 16th and 20th of November. Stay tuned here at dev.to for all kinds of content ranging from IoT, to Machine Learning and much more! 🐍

Top comments (0)