Skip to content

Commit

Permalink
flask setup
Browse files Browse the repository at this point in the history
  • Loading branch information
wuttinanhi committed Sep 18, 2022
1 parent 9729b3a commit 90183c4
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
freeze:
pip freeze > requirements.txt

install:
pip install -r requirements.txt

run:
flask --app main run

dev:
flask --app main --debug run
8 changes: 8 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from flask import Flask

app = Flask(__name__)


@app.route("/")
def hello_world():
return "<p>Hello, World!</p>"
20 changes: 20 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
astroid==2.12.10
autopep8==1.7.0
click==8.1.3
colorama==0.4.5
dill==0.3.5.1
Flask==2.2.2
isort==5.10.1
itsdangerous==2.1.2
Jinja2==3.1.2
lazy-object-proxy==1.7.1
MarkupSafe==2.1.1
mccabe==0.7.0
platformdirs==2.5.2
pycodestyle==2.9.1
pylint==2.15.2
toml==0.10.2
tomli==2.0.1
tomlkit==0.11.4
Werkzeug==2.2.2
wrapt==1.14.1

0 comments on commit 90183c4

Please sign in to comment.