Spaces:
Sleeping
Sleeping
File size: 770 Bytes
534863f |
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 |
from flask import Flask, render_template, request, redirect, url_for
from scripts.utils import listNeeds
app = Flask(__name__)
@app.route("/")
def index():
return render_template("index.html")
@app.route("/login")
def login():
return render_template("login.html")
@app.route("/register")
def register():
return render_template("register.html")
@app.route("/game")
def startGame():
moneyNeeds,_ = listNeeds('money_needs')
customerExpNeeds,_ = listNeeds('customer_exp')
sustainabilityNeeds,_ = listNeeds('sustainability')
return render_template("newGame.html", moneyNeeds=moneyNeeds, customerExpNeeds=customerExpNeeds, sustainabilityNeeds=sustainabilityNeeds)
if __name__ == "__main__":
app.run(debug=True, host="0.0.0.0", port=5000) |