Skip to content

Instantly share code, notes, and snippets.

@devnullone
Last active December 5, 2023 20:35
Show Gist options
  • Save devnullone/1968b1ac10cfb5c65f6c765f38338dc6 to your computer and use it in GitHub Desktop.
Save devnullone/1968b1ac10cfb5c65f6c765f38338dc6 to your computer and use it in GitHub Desktop.
Flask project setup

Install Flask

pip install Flask

Save depemdancies

pip freeze > requirement.txt

Checkig dependancie (Not Mandatory)

Go on pypi.org

Create main.py file

from flask import Flask

app = Flask(main)

app.route('/') def Home() return 'Hello world'

Run in terminal

flask --app main.py run

RESSOURCES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment