Building data-driven web apps with Flask and SQLAlchemy Transcripts
Chapter: Course conclusion
Lecture: Creating a new Flask app
0:00 Well, the first thing we had to do
0:01 to get started with Flask was
0:02 get started with Flask! And we saw that we could do that
0:05 by creating a virtual environment
0:08 pip installing Flask, it would take along the dependencies
0:11 and probably we want SQLAlchemy in there as well.
0:14 So we're going to do that when we get started
0:16 and we saw there's two core ways.
0:18 Of course, we can always use the command-line, right?
0:21 Create a directory, create a environment
0:23 activate it, pip install flask and sqlalchemy
0:26 create a file and just start editing, you know.
0:27 Typically that first file is called app.py.
0:30 We saw that you'll benefit from much more structure
0:34 than the standard Flask tutorial
0:36 'Hello, world' type thing would imply you would ever want.
0:39 But hopefully, going through this whole course
0:41 and seeing this app put together
0:43 you'll build a more structured thing than that.
0:46 So you could always start with the terminal
0:47 and just go that way, or we saw on Pycharm you could say
0:51 New project, Flask.
0:53 Go and create me a virtual environment
0:55 while you're doing it. So either way you want to do it, totally fine.
0:58 And that's how we got started.