[PYTHON] Web application development with Flask

$ pip install flask

Creating a minimal app

app.py


from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello_world():
  return "Hello, World!"

I'm importing the Flask class from the flask package with from flask import Flask. You can set the route as you like with @ app.route ("/ ").

Run

$ export FLASK_APP=app.py
$ flask run

reference

Web application development "first step" with VS Code and Flask

Recommended Posts

Web application development with Flask
Web application with Python + Flask ② ③
Web application with Python + Flask ④
Application development with Docker + Python + Flask
WEB application development using django-Development 1-
Web application creation with Django
Parse and visualize JSON (Web application ⑤ with Python + Flask)
Hobby Web engineer develops web application with Vue.js + Flask (& GCP)
Creating a web application using Flask ②
WEB application development using Django [Application addition]
Web application development memo in python
Build a web application with Django
Creating a web application using Flask ①
Creating a web application using Flask ③
Creating a web application using Flask ④
WEB application development using Django [Model definition]
Let's make a WEB application for phone book with flask Part 1
Web application created with Python + Flask (using VScode) # 1-Virtual environment construction-
Try using the web application framework Flask
Getting Started with Flask with Azure Web Apps
WEB application development using django-Development environment construction-
Build a Flask / Bottle-like web application on AWS Lambda with Chalice
Flask development introduction
Let's make a WEB application for phone book with flask Part 2
WEB application development using Django [Request processing]
Flask application settings
WEB application development using Django [Template addition]
[Python] A quick web application with Bottle!
Create a simple web app with flask
Application development using SQLite with Django (PTVS)
Easy web app with Python + Flask + Heroku
Let's make a WEB application for phone book with flask Part 3
Run a Python web application with Docker
Let's make a WEB application for phone book with flask Part 4
Create a web service with Docker + Flask
Web application development in Go language_Hands-on day 1
Launch Flask application with Docker on Heroku
About Cloud run + Firebase development [Web application development]
I made a WEB application with Django
[GCP] Procedure for creating a web application with Cloud Functions (Python + Flask)
Vienna with Python + Flask web app on Jenkins
WEB application development using Django [Admin screen creation]
[Web development with Python] query is also redirect
Launch a web server with Python and Flask
Explosive speed with Python (Bottle)! Web API development
[Web development with Python] Precautions when saving cookies
Development digest with Django
Let's make an A to B conversion web application with Flask! From scratch ...
[ES Lab] I tried to develop a WEB application with Python and Flask ②
Web application production course learned with Flask of Python Part 2 Chapter 1 ~ JSON exchange ~
IP restrictions with Flask
Web application using Bottle (1)
Hello world with flask
Programming with Python Flask
Flask introduction-Blueprint application memo
Easy machine learning with scikit-learn and flask ✕ Web app
[Mac OS] Use Kivy with PyCharm! [Python application development]
Launch a Python web application with Nginx + Gunicorn with Docker
Web application made with Python3.4 + Django (Part.1 Environment construction)
Build a machine learning application development environment with Python
Solve the problem that CSS is not reflected during web application development in Flask