Add initial Flask application and update README with setup instructions
This commit is contained in:
parent
9a1166a304
commit
c07d9188e9
@ -1,2 +1,5 @@
|
|||||||
# website-backend
|
# website-backend
|
||||||
|
|
||||||
|
Run pip install -r requirements.txt to install the necessary dependencies.
|
||||||
|
|
||||||
|
Run python app.py to start the backend server for the website.
|
||||||
10
app.py
Normal file
10
app.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from flask import Flask
|
||||||
|
|
||||||
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@app.route("/")
|
||||||
|
def hello_world():
|
||||||
|
return "<p>Hello, World!</p>"
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
app.run(debug=True)
|
||||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
flask~=3.1.2
|
||||||
Loading…
x
Reference in New Issue
Block a user