Skip to content

Commit

Permalink
Flask
Browse files Browse the repository at this point in the history
  • Loading branch information
ByeonghoonJeon committed Jul 20, 2021
1 parent 989070e commit 02ffdb0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions flaskPractice/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# import the flask library for usage
from flask import Flask
# creat an instance of the flask server
# as the root directory within 'main.py'
app=Flask(__name__)

#create some routes
@app.route('/')
def displayHompage():
return "<h1>Welcome to your first website</h1>"

@app.route('/route1')
def route1Info():
return"<h3>Congrats you made route 1</h3>"

# turn the server on for serving
if __name__ == "__main__":
app.run(debug=True, port=3000)

0 comments on commit 02ffdb0

Please sign in to comment.