Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

Commit aa29716

Browse files
committed
add Flask
1 parent fc7dba6 commit aa29716

File tree

4 files changed

+237
-0
lines changed

4 files changed

+237
-0
lines changed

backend/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
11
# バックエンド
2+
3+
## 開発サーバーの起動方法
4+
5+
```bash
6+
# pwd is at backend/
7+
poetry run python3 src/project_experiment/hello.py
8+
```

backend/poetry.lock

Lines changed: 217 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ authors = [
88
readme = "README.md"
99
requires-python = ">=3.12"
1010
dependencies = [
11+
"flask (>=3.1.2,<4.0.0)"
1112
]
1213

1314
[tool.poetry]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from flask import Flask
2+
3+
app = Flask(__name__)
4+
5+
6+
@app.route("/")
7+
def hello_world():
8+
return "<p>Hello, World!</p>"
9+
10+
11+
if __name__ == "__main__":
12+
app.run(host="0.0.0.0", port=5000)

0 commit comments

Comments
 (0)