summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2018-10-08 13:09:48 +0300
committerYuval Adam <_@yuv.al>2018-10-08 13:09:48 +0300
commit755a1023aafad7bdf9b3908508467664961600c4 (patch)
tree6312276e81940e8016e6c20c26e223cc5ebfab89
parentff0aacb2c09fccb5819bb8ace792b5839afb6ba4 (diff)
Initial flask server
-rw-r--r--.gitignore3
-rw-r--r--Pipfile4
-rw-r--r--README.md0
-rw-r--r--app.py7
4 files changed, 14 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9cd679b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+__pycache__
+*.pyc
+.env \ No newline at end of file
diff --git a/Pipfile b/Pipfile
index b9ba84f..6f85283 100644
--- a/Pipfile
+++ b/Pipfile
@@ -4,8 +4,12 @@ verify_ssl = true
name = "pypi"
[packages]
+flask = "*"
[dev-packages]
[requires]
python_version = "3.7"
+
+[scripts]
+server = "flask run"
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/README.md
diff --git a/app.py b/app.py
new file mode 100644
index 0000000..8db89b8
--- /dev/null
+++ b/app.py
@@ -0,0 +1,7 @@
+from flask import Flask
+
+app = Flask(__name__)
+
+@app.route('/')
+def index():
+ return 'hello'