We just successfully started the front and application, but unfortunately, we are not able to search
for any images because connection back and service is now refused.
And now let's start EPA service as well.
Let's go to the school.
Let's go back to the JASON file.
And let's expand EPA folder and show that you already have dot e and with the local file, you're inside
of the EPA a folder and there was your personal access for the application that you created at artless
dot com under your personal account.
And now inside of the EPA folder, please create new folder.
Click here and the title of the folder will be Dot e Envy.
Ensure that you at Dot in front of this name.
This folder will contain all virtual environment related files.
Here is the AP file, which is similar to package the JASON file in the front and application.
And this paper file contains list of all dependencies for the back end by the application.
And here you'll see such packages, for instance, as Flask Request and Python Dot in view.
And now we have to create Python virtual environment and install all necessary packages in our API service
in order to be able to run it locally using Python.
Let's do that again.
We have to go to a command line and I'll go to the terminal and here I'll keep front and application
run in this step and open up new tab.
And in the new tab, I'll see the two desktop Docker Images Gallery API.
You have to go inside of the API folder now.
Let's list files and folders here, and I see the same files, which I see now.
But notice that else command does not show hidden files and folders, and on Mac or Linux like systems,
you could add options L.A. in order to see hidden files and folders and also display them in the table
format.
And now I see such file as don't even be that local.
And also in the folder.
Great.
No, you have to enter the following command the and we install this command will basically create new
virtual environment inside of this folder.
And also, it will install all necessary dependencies listed in the B file.
Let's go ahead and create new python build environment.
Creating a beautiful environment successfully created a beautiful environment and Hugo's location of
the environment.
Notice that here you see a path to dot even before the inside of the EPA folder.
That's why I asked you to create signage, not be in the folder manually.
In such case, baby, and we will utilize such folder for all viewable environment related files.
And now we have to activate virtual environment inside of the shell.
Why you have to do that?
Let me explain to you, please your enter now following command flask does this version, and if I press
enter now, I'll see no such file or directory flask is one of the dependencies of our Python API service
and flask enables us actually to run API service and create web cetera.
But now, if I try to check version of the flask, I get file not found because Flask was not installed
globally on my computer, it was installed inside of the viewable environment.
Instead, you're inside of this folder and if I want to get access to such dependencies as, for example,
flask, I need to activate Python viewable environment inside of the shell.
And for that, I have to run command baby in the shell.
Let's do that here, baby, and we shall.
Brutal environment was successfully activated, and here now in parentheses, I see API and this basically
location of the beautiful environment which is currently utilized in this shell.
And if I enter a flask, there's desperation.
Now I'll see correct version of the flask, which is installed inside of the Python viewable environment.
There's the reason why we have to activate such environment inside of the cell.
Python API application also has few development dependencies, which are listed in the paper file and
Dev Packages section here, and they are bulk billing by code style.
And in order to install those development dependencies as well, we have to utilize one more in command
and it is API and we install this desk there.
Let's go ahead and install them.
All right, now, let's quickly verify where old packages were actually installed for that, please
go to Dot V in the folder and expand Liebe folder inside of it.
You'll find bych of packages like Blech, Certified Flask, Flask Girls and are bottles.
And that's actually where all packages were installed in our apartment.
If your environment?
Actual application logic is located in the main file, and no, you have to run such a file using Python
application will be started on the Port 50:50.
That is what is listed here in this land.
Apply a file at the very end of it.
And now let's go ahead and run API a service using Python command.
Please go back to command line here where we have activated Python virtual environment and here and
or command Python when both UI and let's go ahead and run backend API service.
And I see that application is running on H2B for Zero's 50-50.
It means that you are able now to access Back and Python Flask API service using Port 50:50 at any of
your local host.
IP addresses, including a payload, was one hundred twenty seven zero zero one.
Also, you see that debug mode is on, and this tells us that when you make any changes in the Python
application files, for example Main UI file, your application will be automatically started here.
All right.
Let's not try to establish connection to this eBay service using HTP protocol in order to verify whether
we will get specific response from the server or not.
And for that, please click Control button on Windows or Command button on Mac and click on this link
like that and it will be opened in the new tab in the web browser.
Here I see not found and that is actually a response from the Python API server and server responded
was not found because there was no configured root URL, and that is actually correct behavior of the
Python API application.
And now at least we see that web server actually responded us.
And if I go back to the terminal, I will see that there was a get request for a root URL for what's
left stands for that.
And here was a response status code from the server for all four not filed.
Also, there was a request for further conduct.
I will file that this small icon that is displayed here and the for example, here in the font and application
there is favicon here and here.
Web browser also received response 404 not found from the web server and this is again correct behavior.
All right.
We successfully started API and front and applications.
Please give them both Iran in here, in different apps or in different windows in the terminal application,
depending on application you are using right now.
And after the small pause, let's verify how those two applications will work together.
See you next.