forked from COS301-SE-2022/TradeSim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
45 lines (33 loc) · 1.02 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from flask import Flask, redirect, render_template, url_for, request
from flask_bootstrap import Bootstrap
app = Flask(__name__, template_folder='apps/client/templates', static_folder='apps/client/static')
Bootstrap(app)
@app.route("/")
def index():
return redirect(url_for('login'))
@app.route("/login")
def login():
return render_template("login.html")
@app.route("/register", methods=['POST' , 'GET'])
def register():
return render_template("signup.html")
@app.route("/home")
def home():
return render_template("home.html")
@app.route("/addETF")
def add():
return render_template("addETF.html")
@app.route("/compare-date")
def comparedate():
return render_template("compare-date.html")
@app.route("/addRule")
def edit():
return render_template("addRule.html")
@app.route("/ticker")
def tick():
return render_template("ticker.html")
@app.route("/AIEtf")
def generate():
return render_template("AIEtf.html")
if __name__ == "__main__":
app.run("ec2-54-82-241-49.compute-1.amazonaws.com", 8080)