Getting Started with Flask Web Development : Beginner's Guide
Learn the basics of Python's Flask Web Development with our beginner friendly tutorial. We will cover introduction, installation and examples of Flask.
Series: Web Development with Flask
- Getting Started with Flask Web Development : Beginner's Guide
Web Development is the process of creating websites and softwares that support websites behind the scenes. A Web development process generally involves two parts to it :
- Backend Development : Deals with creating software that supports websites behind the scenes. Involves any programming language like Python, Java, Rust etc.
Creating REST APIs, Server side rendered websites are all part of backend development. In this blog post we will be exploring how to get started with Backend development with Flask.
Flask is a web development framework written in Python. Flask is called a micro-framework because of it has built-in support for basics required for web development, and doesn't bloat you with loads of pre-defined libraries or utils.
Flask is known for it's simplicity, modularity and scalability. It gives the developers flexibility to extend it with third-party modules as needed. We highly recommend using Flask for medium-sized projects or services or if you need a framework where you get the control to decide what you want to install and what to avoid.
Let's install Flask on our system and start with our web development journey. Follow the steps :
Open your terminal and create a
virtualenv -p python3 venv
this will create a virtual environment to isolate all the dependencies for your flask application. Here we created a virtualenv with name
venvthat has python3 as it's default python version.
Activate the virtual environment :
this will activate the newly created virtual environment
venv. Here on all the library installations etc will be done on
pip install flask
this will install flask from the pypi repository on your virtual environment using the pip package manager.
and, that's pretty much it. This will install Flask framework on your system, you are not set to start developing your own applications.