AtomLearn
DashboardGoalsGraphAchievementsReviewSign In
DashboardFlaskFlask Setup & App Factory
FlaskNot Started

Flask Setup & App Factory

Install Flask, create an app, run development server

0%

Knowledge Debt detected

You can study this freely — but your score may plateau if these foundations have gaps. The Mastery badge requires them to be solid.

Explanation

Flask is a micro web framework for Python. "Micro" means it gives you the basics (routing, request/response) and lets you add what you need.

python
from flask import Flask

app = Flask(__name__)

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

if __name__ == "__main__": app.run(debug=True) ```

Run with: python app.py → opens at http://127.0.0.1:5000

Best practice — App Factory:

python def create_app(): app = Flask(__name__) app.config.from_object("config.DevelopmentConfig") # register blueprints, extensions... return app

Next in Flask

Flask Routing

Continue