-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrun.py
28 lines (23 loc) · 820 Bytes
/
run.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
#!/usr/bin/python
# -*- coding: ascii -*-
from flask import Flask, render_template, jsonify, url_for, request, redirect
import os
# Routing setup
from views.index import index
from views.problemStatement import problemStatement
from views.travelTimePrediction import travelTimePrediction
from views.historyStats import historyStats
from views.heatmap import heatmap
from views.about import aboutUs
app = Flask(__name__)
app.register_blueprint(index)
app.register_blueprint(problemStatement)
app.register_blueprint(travelTimePrediction)
app.register_blueprint(historyStats)
app.register_blueprint(heatmap)
app.register_blueprint(aboutUs)
if __name__ == '__main__':
app.secret_key = 'super_secret_key'
app.debug = True
port = int(os.environ.get("PORT", 8000))
app.run(host = '127.0.0.1', port = port)