Before we connect to our MongoDB Atlas account, it's great data and refile so we can start adding our
applications config options and in order to access them well after years of package by the name of Dart
Energy.
And therefore I want to right away install it and, as you can see, already stopped server.
So let me clear everything here and then copy and paste, not the entry.
So now I'm installing the package version.
We want to set up the import in the server, and we're going to go with imported off the energy from
data entry and then dart energy config.
After that, I will create a data entry file and just for testing purposes, we're going to go with
Port four thousand just so we can see whether everything works and right after we set up data entry.
I also want to go with Dart getting get, ignore and add two things nor modules, as well as data entry,
because I don't want this to be added to the source control.
Essentially, when we're pushing this up to the game, let's, I guess, start in a server and not I'm
not going to start the server right now.
I'm not going to run npm start because every time you do some changes in data entry, you need to restart
a server anyway.
So kind of seems like a waste of my time.
So I'm going to go back here to the server.
And like I said, we're for data entry package.
Basically, I'm coming up with a variable right now, coming from data envy and then we want to write
a way around the config, so not the envy and config so that you're going to look for data and we file
in root, which is exactly where I'm going to set it up.
So I'm going to save it here then, where I have the server right next to it, I'm going to go with
a dart Henry.
And then like I said, we're going to test this out with different value for support.
I want to go here for four thousand and yes, eventually we're out here.
The connection string as well as JWT secret and pretty much stuff that you already saw as far as the
final project.
And yes, once we push this up to Heroku, we will have to supply these values.
So with this in place now, all we can do is definitely, definitely, definitely create a guarantor.
So I'm going to go over here with that get ignored, which essentially is going to signal which files
should be ignored by the source control.
And in our case, we want to go with node modules because they're my server.
We don't want to push them up, can always install them using package JSON.
And second, always add data.
And if you don't want to expose your variables, essentially if you don't want to expose your sensitive
data.
And once we have everything in place again, I'll clear my terminal and I'm going to go with npm start,
and I don't even need to go to the browser to see that have Port 4000, which means that everything
is working.
And once we have our data entry set up in place now, we can start connecting to MongoDB Atlas account.