Skip to content

Commit

Permalink
setting up the web-app part
Browse files Browse the repository at this point in the history
  • Loading branch information
KeiOshima committed Nov 19, 2023
1 parent 503924d commit 2917c60
Show file tree
Hide file tree
Showing 6 changed files with 438 additions and 14 deletions.
5 changes: 4 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ name = "pypi"
[packages]
pylint = "*"
black = "*"
pytest = "*"
flask = "*"
pymongo = "*"

[dev-packages]

[requires]
python_version = "3.10"
python_version = "3"
240 changes: 227 additions & 13 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions web-app/app.py
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)
Loading

0 comments on commit 2917c60

Please sign in to comment.