#100DaysOfWeb in Python Transcripts
Chapter: Day 50: Responder framework
Lecture: Setting up the project
0:00 Are you ready to write some code?
0:01 And build an API, that movie search service with responder?
0:04 Well, let's get started.
0:05 We're going to over here in our GitHub repo
0:07 create a folder called movie_svc
0:10 and I'm going to go into the service and
0:11 just create a virtual environment
0:13 as we have been all along.
0:15 So we'll run python3 -m venv venv
0:19 and that'll create an virtual environment and activate it.
0:22 Now the next thing to do is install Responder
0:25 so we'll say pip install responder.
0:29 There we go it's all installed
0:31 and if we also install a little tool here called pipdeptree
0:36 you can see how all this stuff fits together.
0:37 You can just say pipdeptree
0:40 and it shows you all of the moving pieces of Responder
0:42 so you can see Responder is using aiofiles, API Star
0:46 graphene, Jinja2, requests
0:50 uvicorn for the async web server
0:53 and then Starlette we already talked about.
0:54 So here's all the pieces that we got working.
0:57 Now let's open this up in PyCharm.
1:02 And now we are going to get started
1:03 by just having a Pyhton file
1:05 and I'll call it app.py.
1:07 You can actually call it whatever you want but that's fine.
1:09 Okay, we make sure everything is working
1:11 by just saying import responder
1:14 and then we can go ahead and just run this.
1:17 Okay loads up looks like everything is configured correctly.
1:20 Now we got to get started with the API
1:23 create some view methods and then run our server.
1:26 Now before we do run that server though
1:28 lets do one more thing
1:29 lets create a requirements file here.
1:34 And here we'll just put responder as well
1:37 okay great so we got our requrements.txt
1:39 and we got our starter code
1:41 that we're going to build our app right here.