1
00:00:04,360 --> 00:00:09,650
All right, now, we are running front and application, and we are able to search for new images and

2
00:00:09,650 --> 00:00:18,490
the new images are retrieved via API Azaria's from the Unsplash API and we actually started both services

3
00:00:18,490 --> 00:00:21,760
in different apps or different windows in the terminal.

4
00:00:22,030 --> 00:00:26,620
Here I am running eBay a service and here I am right in front and service.

5
00:00:26,980 --> 00:00:31,870
And in order to be able to run both services, we performed following tasks.

6
00:00:32,439 --> 00:00:38,770
First, we installed Node.js and npm in order to be able to run front and application.

7
00:00:39,130 --> 00:00:45,790
Afterwards, we installed the all dependencies of the front and application dependencies are listed

8
00:00:45,790 --> 00:00:49,060
here in the package, the Jason File and or Dependencies section.

9
00:00:49,270 --> 00:00:56,350
And for that, we utilized command npm install and during installation npm created such folder as node

10
00:00:56,350 --> 00:00:59,920
modules folder and now all packages are located here.

11
00:01:00,550 --> 00:01:07,840
And after worldThe, we used npm start command, which actually ran React Scripts Start Command, which

12
00:01:08,140 --> 00:01:11,170
at the front and application in development mode.

13
00:01:12,100 --> 00:01:17,320
Afterwards, we created Python Environment for our API service.

14
00:01:17,530 --> 00:01:21,520
For that, we created NOTbe in the Folder, a hero in the API folder.

15
00:01:21,850 --> 00:01:28,480
Also, we created not invited local file with Aunt Bluesky, which is used in order to retrieve actual

16
00:01:28,480 --> 00:01:30,970
images from the aunt's bless dot com.

17
00:01:31,780 --> 00:01:38,620
And afterwards, after creation of the Python beautiful environment, we activated it in the shell and

18
00:01:38,620 --> 00:01:45,280
also we started our eBay service using Python Command and all what you need to do in order to start.

19
00:01:45,280 --> 00:01:51,580
Actually, backend API service is to run main UI file using Python interpreter.

20
00:01:51,940 --> 00:01:54,550
And here are contents of this land by file.

21
00:01:54,850 --> 00:02:01,660
Briefly, it retrieves Unsplash key from the environment variables here and afterwards, there was configuration

22
00:02:01,660 --> 00:02:07,780
of the raoult new image, and this is that raot that is utilized by front and application in order to

23
00:02:07,780 --> 00:02:09,820
make request for new images.

24
00:02:10,789 --> 00:02:11,260
All right.

25
00:02:11,460 --> 00:02:19,160
That's how you could run both applications API and front and locally without Docker, and disadvantages

26
00:02:19,160 --> 00:02:22,220
of that is that you have to run two different processes.

27
00:02:22,520 --> 00:02:24,740
Here I am, running them in two different apps.

28
00:02:25,070 --> 00:02:30,410
And also, you have to install additional software in order to be able to run both applications.

29
00:02:30,890 --> 00:02:33,530
And we installed Python and Node.js for that.

30
00:02:34,220 --> 00:02:40,550
But imagine that specific project consists of multiple microservices, for example, 10 or 15 building

31
00:02:40,550 --> 00:02:41,000
blocks.

32
00:02:41,690 --> 00:02:47,840
And if you want to run such huge application locally, you will have to spend much more time and install

33
00:02:47,870 --> 00:02:53,570
much more additional applications on your computer in order to be able to run all those microservices

34
00:02:53,570 --> 00:02:54,500
simultaneously.

35
00:02:54,920 --> 00:03:01,460
And this where a Docker could greatly help you if you want to run many different microservices simultaneously.

36
00:03:01,970 --> 00:03:08,060
And next, we will start actually localization of both API and front end services.

37
00:03:08,270 --> 00:03:15,950
We will create Docker files and after build custom Docker images based on those files and run those

38
00:03:15,950 --> 00:03:17,520
applications using Docker.

39
00:03:17,780 --> 00:03:25,010
And afterwards, we will move on and create blogger compose file in order to be able to run those applications

40
00:03:25,010 --> 00:03:26,540
using just single command.

41
00:03:26,930 --> 00:03:32,300
And next lectures, of course, are mandatory for you if you want to learn how to utilize Docker files

42
00:03:32,450 --> 00:03:33,650
and Docker compose.

43
00:03:33,920 --> 00:03:35,840
I'll see you guys in the next elections.

