generated from nyu-software-engineering/containerized-app-exercise
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
438 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from flask import Flask, render_template, request, redirect, url_for, make_response, session | ||
import os | ||
from pymongo import MongoClient | ||
import pymongo | ||
import datetime | ||
from bson.objectid import ObjectId | ||
import sys | ||
|
||
app = Flask('project4') | ||
|
||
@app.route('/') | ||
def RootPage(): | ||
return render_template('root.html') | ||
|
||
if __name__ == "__main__": | ||
PORT = os.getenv('PORT', 5000) | ||
app.run(debug=True,port=PORT) |
Oops, something went wrong.