Skip to content

Commit

Permalink
setup
Browse files Browse the repository at this point in the history
  • Loading branch information
csanicola74 committed Aug 29, 2022
1 parent 4b80475 commit c5e5e26
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# flask-part-1
Assignment #2

# GCP deployment link:


# Azure deployment link:
Binary file added __pycache__/app.cpython-39.pyc
Binary file not shown.
29 changes: 29 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -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 '<h1>Hello, World!</h1>'

# creates an 'about' page and function and runs the phrase through it


@app.route('/about/')
def about():
return '<h3>This is a Flask web application made by Caroline Sanicola.</h3>'

# creates a 'contact' page and function and runs the phrase through it


@app.route('/contact/')
def contact():
return '<h3>If you would like to contact us, please don\'t.</h3>'
1 change: 1 addition & 0 deletions app.py.save
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit c5e5e26

Please sign in to comment.