Import project

This commit is contained in:
Kátia Nakamura 2023-06-12 18:06:19 +02:00
parent de24acf550
commit ddad26212e
4 changed files with 27 additions and 0 deletions

3
README.md Normal file
View File

@ -0,0 +1,3 @@
## HelloFlask!
This is an example project demonstrating how to deploy a Flask app to Fly.io.

9
app.py Normal file
View File

@ -0,0 +1,9 @@
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
@app.route('/<name>')
def hello(name=None):
return render_template('hello.html', name=name)

8
requirements.txt Normal file
View File

@ -0,0 +1,8 @@
blinker==1.6.2
click==8.1.3
Flask==2.3.2
gunicorn==20.1.0
itsdangerous==2.1.2
Jinja2==3.1.2
MarkupSafe==2.1.2
Werkzeug==2.3.3

7
templates/hello.html Normal file
View File

@ -0,0 +1,7 @@
<!DOCTYPE html>
<title>Hello from Fly.io</title>
{% if name %}
<h1>Hello, {{ name | capitalize }}!</h1>
{% else %}
<h1>Hello, World!</h1>
{% endif %}