1
00:00:04,450 --> 00:00:11,590
Now there are four containers up and running, and they are API front and Maunga and Mongo Express.

2
00:00:12,100 --> 00:00:15,940
And there are corresponding images that were utilized for all those containers.

3
00:00:16,510 --> 00:00:20,590
Here are four those containers we used of you sold Docker images from Docker hub.

4
00:00:21,100 --> 00:00:26,080
And for the front end and API, we used custom built images.

5
00:00:26,290 --> 00:00:29,890
And for that, we created Docker files with corespondent instructions.

6
00:00:30,490 --> 00:00:36,880
No was go ahead and connect just to Mongo Seelye in order to see how Mongo looks from inside.

7
00:00:37,450 --> 00:00:42,970
For that, we could open a nas a connection to the running Monga container and for that we could utilize

8
00:00:43,000 --> 00:00:44,530
this container name.

9
00:00:45,400 --> 00:00:50,390
Let's open up New tab until let's use Docker Exec Command with options.

10
00:00:50,430 --> 00:00:53,290
Best idea here will be the name of the container.

11
00:00:53,440 --> 00:00:59,920
And next, let's add name of the products we want to start, and you could run either source so hero

12
00:01:00,220 --> 00:01:02,560
or BSL as we did before.

13
00:01:03,040 --> 00:01:09,490
But basically, we need to run Mongo Shell and using Mongo Shell, we could connect to Mongo server

14
00:01:09,490 --> 00:01:13,480
and perform their different operations, for example, in some documents and so on.

15
00:01:14,230 --> 00:01:18,580
This way, instead of shell, let's use your more executable.

16
00:01:19,360 --> 00:01:25,660
And also, we need to specify username and password for Mongo server and those username and password

17
00:01:25,780 --> 00:01:30,430
where asset here are on those lines using those two environment variables.

18
00:01:31,120 --> 00:01:35,770
This way, let's apply this username and password in Mongo command.

19
00:01:36,250 --> 00:01:37,100
Let's go here.

20
00:01:37,330 --> 00:01:38,820
Afterwards will be option.

21
00:01:38,830 --> 00:01:40,510
There's this username.

22
00:01:41,710 --> 00:01:48,610
Next time around, next will be option business password and here, insert this pass.

23
00:01:48,850 --> 00:01:53,760
Let me copy it in order to avoid any typing errors and insult you like that?

24
00:01:54,310 --> 00:01:55,570
And let's press enter.

25
00:01:56,510 --> 00:02:01,320
And low, I'm inside, I was a Mongo cell monger, so abortion is fraud.

26
00:02:01,520 --> 00:02:08,539
4.5 It may just Wizemann got Sarah Paulson because Mongoose Cell and Mongoose cell are actually running

27
00:02:08,550 --> 00:02:10,070
inside of the same container.

28
00:02:10,310 --> 00:02:13,150
This one and no inside it was a modern gazelle.

29
00:02:13,160 --> 00:02:17,390
You could perform different MongoDB operations, for example.

30
00:02:17,480 --> 00:02:21,320
You could list currently created databases using command.

31
00:02:21,350 --> 00:02:27,170
So Déby's and there are three default databases admin, config and local.

32
00:02:27,770 --> 00:02:31,680
You could also switch to a particular database and analyze collections down.

33
00:02:31,850 --> 00:02:34,790
For example, let's use command use admin.

34
00:02:35,240 --> 00:02:40,650
Now we will switch to database admin, and he'll list list collections using command.

35
00:02:40,670 --> 00:02:47,660
So collections and there are two collections system that users and system that were awesome, great.

36
00:02:47,900 --> 00:02:53,570
We could actually go ahead and create new test database here instead of them on Gazelle.

37
00:02:53,630 --> 00:02:57,590
Create new collections there and insert some simple documents down.

38
00:02:58,010 --> 00:03:02,930
But it's not really convenient to continue working inside of the Seelye this way.

39
00:03:03,170 --> 00:03:10,160
Let's now switch to the Mongo Express graphical user interface, and Mongo Express is another container

40
00:03:10,280 --> 00:03:11,690
that is running right here.

41
00:03:12,670 --> 00:03:19,240
Let's open connection to local host IP address to this broad 88 one that is that broad that is exposed

42
00:03:19,240 --> 00:03:21,460
by this one to express container.

43
00:03:21,670 --> 00:03:23,470
Here you see this information.

44
00:03:24,040 --> 00:03:28,300
Let's go to a browser and open up new tab and connect the local host.

45
00:03:29,280 --> 00:03:34,920
88 to one like that, and I'm inside of the Mongol Express container.

46
00:03:35,730 --> 00:03:40,800
And here I also see three default databases admin config and local.

47
00:03:41,370 --> 00:03:44,940
I could click on view and go inside of the admin database.

48
00:03:45,180 --> 00:03:48,570
There are two collections system that users and system that were awesome.

49
00:03:49,140 --> 00:03:54,360
I could click on system but users and see all the records inside of this collection.

50
00:03:54,690 --> 00:04:01,770
For example, there was such a record as you see here on those grid is admin, the root user ID is here

51
00:04:01,770 --> 00:04:03,180
and so on and so forth.

52
00:04:04,080 --> 00:04:04,410
Great.

53
00:04:04,980 --> 00:04:10,500
Also below you see several staples, for example, icy MongoDB, but in your case, you might see a

54
00:04:10,500 --> 00:04:15,510
more recent version if you use lay the stick for Docker container image.

55
00:04:15,930 --> 00:04:20,010
Also, see several time available connections, current connections and so on.

56
00:04:20,820 --> 00:04:25,530
Listen, I'll play a bit with Mongo Express using this graphical user interface, and let's create a

57
00:04:25,530 --> 00:04:29,400
new database and let's create a new collection inside of the database.

58
00:04:29,400 --> 00:04:33,450
And afterwards, let's insert new record inside of that collection.

59
00:04:34,140 --> 00:04:38,310
You could create new database here, and let's name it and be like that.

60
00:04:38,550 --> 00:04:40,170
Let's create this database.

61
00:04:40,500 --> 00:04:41,460
It was created.

62
00:04:41,790 --> 00:04:42,570
Let's click on it.

63
00:04:43,140 --> 00:04:48,300
And here let's create a new collection named, for instance, persons like that.

64
00:04:48,750 --> 00:04:50,130
Let's create a new collection.

65
00:04:50,820 --> 00:04:53,490
It was created, and now I'm inside of this collection.

66
00:04:53,760 --> 00:04:55,830
Let's not insert new document to it.

67
00:04:56,100 --> 00:05:05,070
New document and here after this line at Comma and let's add here name and value, for example, bogged

68
00:05:05,070 --> 00:05:05,310
down.

69
00:05:05,460 --> 00:05:08,790
You could add your name, of course, and let's click Save.

70
00:05:10,130 --> 00:05:16,160
New record was added, and nor does that underscore it was generated automatically by Mongo.

71
00:05:16,700 --> 00:05:18,890
And now this record looks like this.

72
00:05:19,580 --> 00:05:24,520
There are two guys on the score idea and name will of the others.

73
00:05:24,530 --> 00:05:29,480
Sacred is object idea with this generated value and name is bogged down.

74
00:05:29,870 --> 00:05:36,770
And if you want, you could even edit such document here at some Isaac use, for example, at gear use

75
00:05:36,770 --> 00:05:41,000
recording, of course, and well, you will be true like that.

76
00:05:41,480 --> 00:05:48,230
You could add the record is loosening the girls and let's say what changes changes well saved and document

77
00:05:48,230 --> 00:05:49,250
was updated.

78
00:05:49,760 --> 00:05:52,700
You could click on it, and here is the updated document.

79
00:05:53,540 --> 00:05:56,600
You could perform same operations in the SEAL II, of course.

80
00:05:56,960 --> 00:06:02,600
Let's go back to Seelye here, and let's go back to the step where I'm running one gazelle.

81
00:06:02,990 --> 00:06:08,030
And no, let's show Déby's and low IQ database on this list.

82
00:06:08,270 --> 00:06:12,140
Let's switch to this database using command use DMP.

83
00:06:12,260 --> 00:06:12,800
Like that?

84
00:06:13,100 --> 00:06:14,600
Switch to delete DMP.

85
00:06:15,050 --> 00:06:21,380
And no, let's find some records in the Paracels collection for that use syntax Debbie Dot Paracels

86
00:06:21,800 --> 00:06:25,370
Dot Find, and he'll simply add pair of parentheses like that.

87
00:06:25,940 --> 00:06:30,950
And with such command, you will find all existing documents inside of the person's collection.

88
00:06:31,340 --> 00:06:34,010
Let's find them, and they found a single record.

89
00:06:34,190 --> 00:06:38,990
This one does that record that they just inserted using graphical user interface?

90
00:06:39,800 --> 00:06:41,590
All right, let's exit from one go.

91
00:06:41,600 --> 00:06:48,140
So here we don't need anymore because we are now able to perform all crud operations using graphical

92
00:06:48,140 --> 00:06:49,400
user interface here.

93
00:06:50,120 --> 00:06:50,510
Great.

94
00:06:50,780 --> 00:06:56,780
Let's go to the homepage of Mongo Express and here I still see DMP database on this list.

95
00:06:57,620 --> 00:07:03,800
No, after the small pause, let's try to the following list try to bring down all the containers and

96
00:07:03,800 --> 00:07:10,310
afterwards bring all of them up again and check whether this DMP database will be present or not.

97
00:07:11,060 --> 00:07:12,710
Let's get to it after the small pause.

