1
00:00:00,510 --> 00:00:08,700
Before we connect to our MongoDB Atlas account, it's great data and refile so we can start adding our

2
00:00:08,700 --> 00:00:16,860
applications config options and in order to access them well after years of package by the name of Dart

3
00:00:16,860 --> 00:00:17,310
Energy.

4
00:00:17,550 --> 00:00:22,020
And therefore I want to right away install it and, as you can see, already stopped server.

5
00:00:22,500 --> 00:00:26,460
So let me clear everything here and then copy and paste, not the entry.

6
00:00:26,880 --> 00:00:29,830
So now I'm installing the package version.

7
00:00:30,330 --> 00:00:36,870
We want to set up the import in the server, and we're going to go with imported off the energy from

8
00:00:36,880 --> 00:00:40,440
data entry and then dart energy config.

9
00:00:41,070 --> 00:00:46,850
After that, I will create a data entry file and just for testing purposes, we're going to go with

10
00:00:46,920 --> 00:00:53,730
Port four thousand just so we can see whether everything works and right after we set up data entry.

11
00:00:54,060 --> 00:01:01,260
I also want to go with Dart getting get, ignore and add two things nor modules, as well as data entry,

12
00:01:01,260 --> 00:01:06,090
because I don't want this to be added to the source control.

13
00:01:06,180 --> 00:01:13,620
Essentially, when we're pushing this up to the game, let's, I guess, start in a server and not I'm

14
00:01:13,620 --> 00:01:15,270
not going to start the server right now.

15
00:01:15,270 --> 00:01:21,900
I'm not going to run npm start because every time you do some changes in data entry, you need to restart

16
00:01:21,900 --> 00:01:22,650
a server anyway.

17
00:01:22,670 --> 00:01:25,290
So kind of seems like a waste of my time.

18
00:01:25,710 --> 00:01:27,870
So I'm going to go back here to the server.

19
00:01:28,050 --> 00:01:30,990
And like I said, we're for data entry package.

20
00:01:31,530 --> 00:01:37,350
Basically, I'm coming up with a variable right now, coming from data envy and then we want to write

21
00:01:37,350 --> 00:01:45,150
a way around the config, so not the envy and config so that you're going to look for data and we file

22
00:01:45,420 --> 00:01:48,090
in root, which is exactly where I'm going to set it up.

23
00:01:48,420 --> 00:01:52,980
So I'm going to save it here then, where I have the server right next to it, I'm going to go with

24
00:01:53,010 --> 00:01:53,940
a dart Henry.

25
00:01:54,270 --> 00:01:58,710
And then like I said, we're going to test this out with different value for support.

26
00:01:59,230 --> 00:02:03,320
I want to go here for four thousand and yes, eventually we're out here.

27
00:02:03,330 --> 00:02:11,250
The connection string as well as JWT secret and pretty much stuff that you already saw as far as the

28
00:02:11,250 --> 00:02:12,060
final project.

29
00:02:12,060 --> 00:02:17,070
And yes, once we push this up to Heroku, we will have to supply these values.

30
00:02:17,250 --> 00:02:23,280
So with this in place now, all we can do is definitely, definitely, definitely create a guarantor.

31
00:02:23,750 --> 00:02:30,300
So I'm going to go over here with that get ignored, which essentially is going to signal which files

32
00:02:30,300 --> 00:02:32,850
should be ignored by the source control.

33
00:02:33,210 --> 00:02:36,780
And in our case, we want to go with node modules because they're my server.

34
00:02:36,780 --> 00:02:40,380
We don't want to push them up, can always install them using package JSON.

35
00:02:40,620 --> 00:02:42,870
And second, always add data.

36
00:02:42,870 --> 00:02:50,970
And if you don't want to expose your variables, essentially if you don't want to expose your sensitive

37
00:02:51,270 --> 00:02:51,660
data.

38
00:02:52,050 --> 00:02:57,720
And once we have everything in place again, I'll clear my terminal and I'm going to go with npm start,

39
00:02:58,080 --> 00:03:05,340
and I don't even need to go to the browser to see that have Port 4000, which means that everything

40
00:03:05,340 --> 00:03:05,850
is working.

41
00:03:06,180 --> 00:03:12,420
And once we have our data entry set up in place now, we can start connecting to MongoDB Atlas account.

