diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2c4811c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/mindmapmakerenv \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..5698f6d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.pythonPath": "c:\\Users\\user-\\Desktop\\MindMapMaker\\mindmapmakerenv\\Scripts\\python.exe" +} \ No newline at end of file diff --git a/app.py b/app.py new file mode 100644 index 0000000..24983bf --- /dev/null +++ b/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) \ No newline at end of file diff --git a/index.html b/templates/index.html similarity index 100% rename from index.html rename to templates/index.html