Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Hellow Word in Flask App ?

What is Flask ?

Flask is a lightweight and flexible web framework written in Python. It is designed to make getting started with web development quick and easy, with the ability to scale up to complex applications. Flask provides tools and libraries to help you build web applications and APIs in Python, with a focus on simplicity and minimalism.

Key features of Flask include:

  1. Minimalistic: Flask is designed to be lightweight and unopinionated, allowing developers to choose the tools and libraries they want to use.
  2. Routing: Flask provides a simple and intuitive routing system, allowing developers to define URL routes and map them to Python functions (view functions) that handle HTTP requests.
  3. Templates: Flask includes a template engine called Jinja2, which allows developers to write HTML templates with dynamic content using Python-like syntax.
  4. HTTP Request Handling: Flask provides built-in support for handling HTTP requests, including parsing request data, handling form submissions, and managing sessions.
  5. Extensions: Flask has a rich ecosystem of extensions that add additional functionality to the framework, such as database integration, authentication, and security features.
  6. Development Server: Flask includes a built-in development server that makes it easy to run and test your web applications locally during development.
  7. RESTful APIs: Flask is well-suited for building RESTful APIs, allowing developers to create web services that communicate with other applications or clients over HTTP.

Run below command

python -m venv venv
.\venv\Scripts\activate
python -m pip install --upgrade pip

Next to install Flask

pip install flask

Next to create new file app.py and put below code

touch app.py
from flask import Flask
app = Flask(__name__)
@app.route("/")
def home():
    return "Hellow world"

Next to run below command for serve

python -m flask --app .\app.py run

Next to open development server and check

Hi I am Amit Kumar Thakur Experienced as s Software Developer with a demonstrated history of working in the information technology and services industry. Skilled in HTML, CSS, Bootstrap4, PHP, Laravel-9 , REST API,FB API,Google API, Youtube Api, Bitbucket,Github,Linux and jQuery. Strong engineering professional focused in Computer/Information Technology Administration and Management. Currently my profile is to Software Developer, analyze the requirement, creating frame for web application, coding and maintenance.

Related Posts

How to install django on Windows ?

What is Django ? Django is a high-level Python web framework that helps you build web applications quickly and efficiently. It’s open-source, free to use, and known…

How to Create Route and Page in Django ?

In this tutorial im going to share how to create url and call the page in Django. I have mentioned in very easy way so follow this…

How to Generate Sitemap in Flask APP ?

What is Sitemap ? A sitemap is a file that lists the pages of a website to inform search engines about the organization of its content. It…

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x