From 48767db3b688117a68d221fe7f49f422954a6126 Mon Sep 17 00:00:00 2001 From: Cycrypto Date: Sat, 18 May 2024 17:06:59 +0900 Subject: [PATCH] Create: initialize new sls environment --- .gitignore | 2 ++ aws-sandol-flask-api/app.py | 8 ++++++++ requirements.txt | 23 ----------------------- sandol/app.py | 5 +++++ 4 files changed, 15 insertions(+), 23 deletions(-) create mode 100644 aws-sandol-flask-api/app.py delete mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore index 08d115ee..4f8bbbfa 100644 --- a/.gitignore +++ b/.gitignore @@ -166,3 +166,5 @@ instance/* .webassets-cache .env +### others +**/node_mudules/ diff --git a/aws-sandol-flask-api/app.py b/aws-sandol-flask-api/app.py new file mode 100644 index 00000000..c4137740 --- /dev/null +++ b/aws-sandol-flask-api/app.py @@ -0,0 +1,8 @@ +from flask import Flask + +app = Flask(__name__) + + +@app.route("/") +def root(): + return "Hello Sandol" diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index c41be8e0..00000000 --- a/requirements.txt +++ /dev/null @@ -1,23 +0,0 @@ -beautifulsoup4==4.12.3 -blinker==1.7.0 -bs4==0.0.2 -certifi==2024.2.2 -charset-normalizer==3.3.2 -click==8.1.7 -exceptiongroup==1.2.0 -Flask==3.0.2 -idna==3.6 -importlib_metadata==7.1.0 -iniconfig==2.0.0 -itsdangerous==2.1.2 -Jinja2==3.1.3 -MarkupSafe==2.1.5 -packaging==24.0 -pluggy==1.4.0 -pytest==8.1.1 -requests==2.31.0 -soupsieve==2.5 -tomli==2.0.1 -urllib3==2.2.1 -Werkzeug==3.0.1 -zipp==3.18.1 diff --git a/sandol/app.py b/sandol/app.py index 2b3bdef3..688e3f7a 100644 --- a/sandol/app.py +++ b/sandol/app.py @@ -8,4 +8,9 @@ def root(): return "Hello Sandol" +@app.route("/lib") +def library(): + + + app.run()