]> git.datanom.net - flask-test.git/commitdiff
basic setup
authorMichael Rasmussen <mir@datanom.net>
Tue, 28 Nov 2017 20:06:57 +0000 (21:06 +0100)
committerMichael Rasmussen <mir@datanom.net>
Tue, 28 Nov 2017 20:06:57 +0000 (21:06 +0100)
Signed-off-by: Michael Rasmussen <mir@datanom.net>
.gitignore [new file with mode: 0644]
app/__init__.py [new file with mode: 0644]
app/views.py [new file with mode: 0644]
run.py [new file with mode: 0755]
setup.sh [new file with mode: 0755]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..e9bd007
--- /dev/null
@@ -0,0 +1,2 @@
+flask/
+app/__pycache__/
diff --git a/app/__init__.py b/app/__init__.py
new file mode 100644 (file)
index 0000000..3ab3eef
--- /dev/null
@@ -0,0 +1,5 @@
+from flask import Flask
+
+app = Flask(__name__)
+from app import views
+
diff --git a/app/views.py b/app/views.py
new file mode 100644 (file)
index 0000000..d467b15
--- /dev/null
@@ -0,0 +1,6 @@
+from app import app
+
+@app.route('/')
+@app.route('/index')
+def index():
+    return "Hello, World!"
diff --git a/run.py b/run.py
new file mode 100755 (executable)
index 0000000..178fd8a
--- /dev/null
+++ b/run.py
@@ -0,0 +1,3 @@
+#!flask/bin/python
+from app import app
+app.run(debug=True)
diff --git a/setup.sh b/setup.sh
new file mode 100755 (executable)
index 0000000..54cbfac
--- /dev/null
+++ b/setup.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+flask/bin/pip install flask
+flask/bin/pip install flask-login
+#flask/bin/pip install flask-openid
+flask/bin/pip install flask-mail
+flask/bin/pip install flask-sqlalchemy
+flask/bin/pip install sqlalchemy-migrate
+flask/bin/pip install flask-whooshalchemy
+flask/bin/pip install flask-wtf
+flask/bin/pip install flask-babel
+flask/bin/pip install guess_language
+flask/bin/pip install flipflop
+flask/bin/pip install coverage
+flask/bin/pip install psycopg2
+
This page took 0.052694 seconds and 5 git commands to generate.