Now, let's get to building your first Flask app. You'll be using an online coding tool called Repl.it, where you can write and run your own code from within the browser. If you've never used it before, you type your code in one window, click the run button, then watch it work! You can also pop out your pre-made website address; that address is where you'll be able to see your own Flask app.
Type the following into Repl.it, then try running it and see if you get a "hello" back! Or you can go here and try to run it.
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return "Hello Web World!"
if __name__ == '__main__':
app.run(host='0.0.0.0', port=8080)
Did it work? If so, then HOLY FLASK you just make your first Flask website! If you haven't already, you could even try making the page say something else. ;)
I'm sure you're anxious to get to the real stuff. No problem! You'll have to do a bit of setup first, but then after that, you'll be all set to start the real training, so let's move on!