Skip to content

Commit

Permalink
app.py 가상환경 폴더구조 로컬서버 mongoDB 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
1K3H committed Jul 6, 2020
1 parent 7854b51 commit f97ab18
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
/mindmapmakerenv
3 changes: 3 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,3 @@
{
"python.pythonPath": "c:\\Users\\user-\\Desktop\\MindMapMaker\\mindmapmakerenv\\Scripts\\python.exe"
}
16 changes: 16 additions & 0 deletions app.py
@@ -0,0 +1,16 @@
from pymongo import MongoClient

from flask import Flask, render_template, jsonify, request
app = Flask(__name__)

client = MongoClient('localhost', 27017)
db = client.mindmapmaker


# HTML을 주는 부분
@app.route('/')
def home():
return render_template('index.html')

if __name__ == '__main__':
app.run('0.0.0.0', port=5000, debug=True)
File renamed without changes.

0 comments on commit f97ab18

Please sign in to comment.