minor changes

This commit is contained in:
Lucas Mathews
2024-05-19 19:51:59 +02:00
parent 76fd8ee180
commit 544b9e1c2f
4 changed files with 22 additions and 5 deletions

View File

@@ -1,5 +1,3 @@
Old/
.venv/
__pycache__/
.dockerignore
Flask App
.dockerignore

10
cli.py
View File

@@ -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()
main()
if __name__ == "__main__":
sys.exit( main() )

View File

@@ -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')

0
templates/bank/base.html Normal file
View File