Up and Running with Git Transcripts
Chapter: Our first git repository
Lecture: Create a skeleton Flask app

Login or purchase this course to watch this video and the rest of the course contents.
0:00 In order to express that this project is going to use flask and when we check
0:05 it back out, we're going to want to say if you don't have flask in
0:08 your environment, you need to install it.
0:10 Let's add a new file here and watch what happens.
0:14 I'm gonna say new requirements dot txt and high charm says,
0:20 hey, here's a file that looks like it should be part of your project.
0:24 Would you like to add it already to get this is the get add file name
0:30 already and all we do is create a project or create a file.
0:32 So yes, that seems fine.
0:34 Let's do that. And let's just go over here and say this requires flask.
0:39 Maybe we should pin the version and so on.
0:41 And I'm going to let pi charm install it into the virtual environment.
0:45 If you don't do it that way it's activate the virtual environment then pip install dash
0:49 r requirements dot txt. That happened automatically for us.
0:54 Okay. So now you can see that the colors are different,
0:57 we have a green one which is added but check this out if we go over
1:00 to git hub and maybe we got to refresh it,
1:04 nope, there's no requirements dot txt or any other files that have been added.
1:09 Remember, commit and add, operate locally.
1:13 It's not until we push those changes over.
1:15 So we're going to keep working locally in our distributed way.
1:19 We have our flask file here and let's just get,
1:21 for starters the Hello world ap going so let's go over and I'll just grab this
1:28 little bit of Hello World went over from flask,
1:31 Clean that up now. This should really be an app.
1:34 Dot get this is a newer way of doing things in flask.
1:38 So we'll put that there and let's go ahead and run it.
1:42 And high charm the way you run it.
1:44 There's a couple of ways actually,
1:45 we could go over here and just say right click and run and we have to
1:49 call run at the end or we can say add a new configuration Bower flask,
1:58 the module name will be app like that.
2:02 Turn on to bug, tell it to go look at that it's running and Hello
2:08 World. Fantastic. We've connected our get up repository to our editor,
2:17 either V S code or pie chart.
2:19 Really. Both actually. And you can see already that the colors are coming through
2:24 to communicate things like the get status of what's happening.
2:28 So we've worked with GIT add and we've worked with get status from what we've talked
2:33 about so far already in this editor here and then indirectly worked with the git clone
2:39 from source tree to get it onto our system in the first place. Fantastic.