diff --git a/.dockerignore b/.dockerignore index 5775e7c..aefd4c5 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,3 @@ -Old/ .venv/ __pycache__/ -.dockerignore -Flask App \ No newline at end of file +.dockerignore \ No newline at end of file diff --git a/cli.py b/cli.py index 2c3411b..dbe5241 100644 --- a/cli.py +++ b/cli.py @@ -2,8 +2,11 @@ # Banking System CLI Utility import requests +import argparse +import sys +from config import CONFIG -SERVER_URL = "http://127.0.0.1:5000" +SERVER_URL = "http://127.0.0.1:81" def main(): username = "john" @@ -16,4 +19,7 @@ def main(): response = requests.get( f"{SERVER_URL}/logout") print(f"{response}, {response.content}") print(f"Closing") -main() \ No newline at end of file +main() + +if __name__ == "__main__": + sys.exit( main() ) \ No newline at end of file diff --git a/flask.py b/flask.py index e69de29..f9ca19c 100644 --- a/flask.py +++ b/flask.py @@ -0,0 +1,13 @@ +# Lucas Mathews - Fontys Student ID: 5023572 +# Banking System Flask App + +from flask import Flask, render_template, request, make_response, redirect + +from config import CONFIG + +app = Flask(__name__) + +@app.route('/') +def index(): + return render_template('bank/index.html') + diff --git a/templates/bank/base.html b/templates/bank/base.html new file mode 100644 index 0000000..e69de29