diff --git a/flaskPractice/main.py b/flaskPractice/main.py new file mode 100644 index 00000000..fd25ad8a --- /dev/null +++ b/flaskPractice/main.py @@ -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 "

Welcome to your first website

" + +@app.route('/route1') +def route1Info(): + return"

Congrats you made route 1

" + +# turn the server on for serving +if __name__ == "__main__": + app.run(debug=True, port=3000) \ No newline at end of file