diff --git a/README.md b/README.md index 5cb1666..b258cfe 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # flask-part-1 Assignment #2 + +# GCP deployment link: + + +# Azure deployment link: \ No newline at end of file diff --git a/__pycache__/app.cpython-39.pyc b/__pycache__/app.cpython-39.pyc new file mode 100644 index 0000000..4cb7bf7 Binary files /dev/null and b/__pycache__/app.cpython-39.pyc differ diff --git a/app.py b/app.py new file mode 100644 index 0000000..42a5860 --- /dev/null +++ b/app.py @@ -0,0 +1,29 @@ +# the below imports the Flask object from the flask package +from flask import Flask + +# creating the Flask application instance and give it the name app +app = Flask(__name__) + +# the decorator, @app.route, is being told with '/' that the function will respond to web requests for the URL '/' + + +@app.route('/') +# creates the 'index' page and the ability to navigate between pages +@app.route('/index/') +# creates the 'hello' function and then runs the phrase 'Hello, World!' through it +def hello(): + return '

Hello, World!

' + +# creates an 'about' page and function and runs the phrase through it + + +@app.route('/about/') +def about(): + return '

This is a Flask web application made by Caroline Sanicola.

' + +# creates a 'contact' page and function and runs the phrase through it + + +@app.route('/contact/') +def contact(): + return '

If you would like to contact us, please don\'t.

' diff --git a/app.py.save b/app.py.save new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/app.py.save @@ -0,0 +1 @@ +