1
00:00:04,510 --> 00:00:10,030
We just successfully started the front and application, but unfortunately, we are not able to search

2
00:00:10,030 --> 00:00:14,770
for any images because connection back and service is now refused.

3
00:00:15,130 --> 00:00:17,860
And now let's start EPA service as well.

4
00:00:18,310 --> 00:00:19,510
Let's go to the school.

5
00:00:19,750 --> 00:00:21,640
Let's go back to the JASON file.

6
00:00:21,790 --> 00:00:28,810
And let's expand EPA folder and show that you already have dot e and with the local file, you're inside

7
00:00:28,810 --> 00:00:35,560
of the EPA a folder and there was your personal access for the application that you created at artless

8
00:00:35,590 --> 00:00:37,750
dot com under your personal account.

9
00:00:38,350 --> 00:00:42,520
And now inside of the EPA folder, please create new folder.

10
00:00:42,820 --> 00:00:47,230
Click here and the title of the folder will be Dot e Envy.

11
00:00:47,440 --> 00:00:50,440
Ensure that you at Dot in front of this name.

12
00:00:51,100 --> 00:00:55,270
This folder will contain all virtual environment related files.

13
00:00:55,990 --> 00:01:02,110
Here is the AP file, which is similar to package the JASON file in the front and application.

14
00:01:02,530 --> 00:01:09,460
And this paper file contains list of all dependencies for the back end by the application.

15
00:01:10,000 --> 00:01:15,730
And here you'll see such packages, for instance, as Flask Request and Python Dot in view.

16
00:01:16,540 --> 00:01:24,490
And now we have to create Python virtual environment and install all necessary packages in our API service

17
00:01:24,670 --> 00:01:27,340
in order to be able to run it locally using Python.

18
00:01:27,970 --> 00:01:29,170
Let's do that again.

19
00:01:29,170 --> 00:01:35,320
We have to go to a command line and I'll go to the terminal and here I'll keep front and application

20
00:01:35,320 --> 00:01:38,320
run in this step and open up new tab.

21
00:01:38,920 --> 00:01:44,830
And in the new tab, I'll see the two desktop Docker Images Gallery API.

22
00:01:45,490 --> 00:01:48,550
You have to go inside of the API folder now.

23
00:01:49,180 --> 00:01:54,050
Let's list files and folders here, and I see the same files, which I see now.

24
00:01:54,190 --> 00:02:00,070
But notice that else command does not show hidden files and folders, and on Mac or Linux like systems,

25
00:02:00,070 --> 00:02:06,550
you could add options L.A. in order to see hidden files and folders and also display them in the table

26
00:02:06,550 --> 00:02:07,090
format.

27
00:02:07,360 --> 00:02:10,150
And now I see such file as don't even be that local.

28
00:02:10,240 --> 00:02:12,920
And also in the folder.

29
00:02:13,540 --> 00:02:13,960
Great.

30
00:02:14,260 --> 00:02:21,460
No, you have to enter the following command the and we install this command will basically create new

31
00:02:21,460 --> 00:02:24,250
virtual environment inside of this folder.

32
00:02:24,550 --> 00:02:29,860
And also, it will install all necessary dependencies listed in the B file.

33
00:02:30,310 --> 00:02:33,910
Let's go ahead and create new python build environment.

34
00:02:36,060 --> 00:02:42,120
Creating a beautiful environment successfully created a beautiful environment and Hugo's location of

35
00:02:42,120 --> 00:02:43,400
the environment.

36
00:02:43,800 --> 00:02:49,200
Notice that here you see a path to dot even before the inside of the EPA folder.

37
00:02:49,530 --> 00:02:54,300
That's why I asked you to create signage, not be in the folder manually.

38
00:02:54,570 --> 00:03:00,990
In such case, baby, and we will utilize such folder for all viewable environment related files.

39
00:03:01,590 --> 00:03:05,940
And now we have to activate virtual environment inside of the shell.

40
00:03:06,360 --> 00:03:07,410
Why you have to do that?

41
00:03:07,860 --> 00:03:14,240
Let me explain to you, please your enter now following command flask does this version, and if I press

42
00:03:14,250 --> 00:03:24,090
enter now, I'll see no such file or directory flask is one of the dependencies of our Python API service

43
00:03:24,450 --> 00:03:29,340
and flask enables us actually to run API service and create web cetera.

44
00:03:29,880 --> 00:03:36,930
But now, if I try to check version of the flask, I get file not found because Flask was not installed

45
00:03:36,930 --> 00:03:41,760
globally on my computer, it was installed inside of the viewable environment.

46
00:03:41,760 --> 00:03:48,300
Instead, you're inside of this folder and if I want to get access to such dependencies as, for example,

47
00:03:48,300 --> 00:03:53,310
flask, I need to activate Python viewable environment inside of the shell.

48
00:03:53,700 --> 00:03:57,150
And for that, I have to run command baby in the shell.

49
00:03:57,690 --> 00:04:00,780
Let's do that here, baby, and we shall.

50
00:04:01,810 --> 00:04:08,530
Brutal environment was successfully activated, and here now in parentheses, I see API and this basically

51
00:04:08,530 --> 00:04:13,060
location of the beautiful environment which is currently utilized in this shell.

52
00:04:13,540 --> 00:04:16,529
And if I enter a flask, there's desperation.

53
00:04:16,570 --> 00:04:23,770
Now I'll see correct version of the flask, which is installed inside of the Python viewable environment.

54
00:04:24,460 --> 00:04:29,200
There's the reason why we have to activate such environment inside of the cell.

55
00:04:30,260 --> 00:04:37,130
Python API application also has few development dependencies, which are listed in the paper file and

56
00:04:37,310 --> 00:04:42,140
Dev Packages section here, and they are bulk billing by code style.

57
00:04:42,530 --> 00:04:49,340
And in order to install those development dependencies as well, we have to utilize one more in command

58
00:04:49,850 --> 00:04:53,810
and it is API and we install this desk there.

59
00:04:54,350 --> 00:04:55,970
Let's go ahead and install them.

60
00:04:56,930 --> 00:05:02,660
All right, now, let's quickly verify where old packages were actually installed for that, please

61
00:05:02,690 --> 00:05:07,610
go to Dot V in the folder and expand Liebe folder inside of it.

62
00:05:07,640 --> 00:05:14,090
You'll find bych of packages like Blech, Certified Flask, Flask Girls and are bottles.

63
00:05:14,510 --> 00:05:18,870
And that's actually where all packages were installed in our apartment.

64
00:05:18,890 --> 00:05:20,060
If your environment?

65
00:05:21,280 --> 00:05:30,040
Actual application logic is located in the main file, and no, you have to run such a file using Python

66
00:05:30,730 --> 00:05:34,300
application will be started on the Port 50:50.

67
00:05:34,510 --> 00:05:37,090
That is what is listed here in this land.

68
00:05:37,090 --> 00:05:39,070
Apply a file at the very end of it.

69
00:05:39,820 --> 00:05:44,380
And now let's go ahead and run API a service using Python command.

70
00:05:44,920 --> 00:05:51,520
Please go back to command line here where we have activated Python virtual environment and here and

71
00:05:51,520 --> 00:05:58,390
or command Python when both UI and let's go ahead and run backend API service.

72
00:05:59,020 --> 00:06:04,540
And I see that application is running on H2B for Zero's 50-50.

73
00:06:04,840 --> 00:06:12,700
It means that you are able now to access Back and Python Flask API service using Port 50:50 at any of

74
00:06:12,700 --> 00:06:13,960
your local host.

75
00:06:13,960 --> 00:06:18,850
IP addresses, including a payload, was one hundred twenty seven zero zero one.

76
00:06:19,600 --> 00:06:26,380
Also, you see that debug mode is on, and this tells us that when you make any changes in the Python

77
00:06:26,530 --> 00:06:33,550
application files, for example Main UI file, your application will be automatically started here.

78
00:06:34,120 --> 00:06:34,630
All right.

79
00:06:34,840 --> 00:06:40,990
Let's not try to establish connection to this eBay service using HTP protocol in order to verify whether

80
00:06:41,050 --> 00:06:44,020
we will get specific response from the server or not.

81
00:06:44,290 --> 00:06:50,440
And for that, please click Control button on Windows or Command button on Mac and click on this link

82
00:06:50,440 --> 00:06:54,280
like that and it will be opened in the new tab in the web browser.

83
00:06:54,850 --> 00:07:02,320
Here I see not found and that is actually a response from the Python API server and server responded

84
00:07:02,320 --> 00:07:08,800
was not found because there was no configured root URL, and that is actually correct behavior of the

85
00:07:08,800 --> 00:07:10,900
Python API application.

86
00:07:11,590 --> 00:07:15,880
And now at least we see that web server actually responded us.

87
00:07:16,030 --> 00:07:22,570
And if I go back to the terminal, I will see that there was a get request for a root URL for what's

88
00:07:22,570 --> 00:07:23,740
left stands for that.

89
00:07:24,010 --> 00:07:28,750
And here was a response status code from the server for all four not filed.

90
00:07:29,140 --> 00:07:31,410
Also, there was a request for further conduct.

91
00:07:31,420 --> 00:07:38,080
I will file that this small icon that is displayed here and the for example, here in the font and application

92
00:07:38,080 --> 00:07:40,390
there is favicon here and here.

93
00:07:40,390 --> 00:07:47,290
Web browser also received response 404 not found from the web server and this is again correct behavior.

94
00:07:47,860 --> 00:07:48,340
All right.

95
00:07:48,520 --> 00:07:52,240
We successfully started API and front and applications.

96
00:07:52,480 --> 00:07:58,660
Please give them both Iran in here, in different apps or in different windows in the terminal application,

97
00:07:58,660 --> 00:08:01,120
depending on application you are using right now.

98
00:08:01,420 --> 00:08:07,330
And after the small pause, let's verify how those two applications will work together.

99
00:08:07,630 --> 00:08:08,230
See you next.

