first commit

This commit is contained in:
2024-08-27 23:36:41 +08:00
commit fdccd77c4d
3 changed files with 23 additions and 0 deletions

11
main.py Normal file
View File

@@ -0,0 +1,11 @@
from flask import Flask, render_template
app = Flask(__name__)
# Route for the home page
@app.route('/')
def home():
return render_template('index.html')
if __name__ == '__main__':
app.run(debug=True)

1
requirements.txt Normal file
View File

@@ -0,0 +1 @@
flask

11
templates/index.html Normal file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home Page</title>
</head>
<body>
<h1>Welcome to My Simple Flask App!</h1>
</body>
</html>