minor changes
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
Old/
|
||||
.venv/
|
||||
__pycache__/
|
||||
.dockerignore
|
||||
Flask App
|
||||
.dockerignore
|
||||
10
cli.py
10
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()
|
||||
main()
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit( main() )
|
||||
13
flask.py
13
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')
|
||||
|
||||
|
||||
0
templates/bank/base.html
Normal file
0
templates/bank/base.html
Normal file
Reference in New Issue
Block a user