If we want to create a new environment variable to store any secret data, for example, a password,
an API key, a path, or any well, any sensitive data.
Right?
For our application you have to open up the environment variables window.
So simply open up the search box in windows.
Right.
Search for environment variables and then you can see added the system environment variables.
So click on that and open it up.
Now you get to the system properties window and right here at the bottom you can see environment variables.
So click on that.
Now we have two environment variables, generally speaking, one for our current user and one for the
entire system.
Now we want to add one for the system right here.
So I already did that.
Here is the invoice management.
That's basically the variable.
So the key and then we have the value set to test one, two, three.
What you want to do is you want to create a new one, you want to set it to invoice management, for
example, please keep in mind it's a key value pair.
So in order to get the value later on, we will have to provide the key.
So you could call it like password for my application or whatsoever, right?
We want to name it invoice management and then write down whatever password you like.
I would suggest sticking around with test one, two, three.
But just keep that in mind because we will use it later on for our application.
And if you then forget about the password, you will not be able to log in, right?
So write down invoice management test one, two, three and then click on okay.
And then you will be able to see the invoice management, including the value right here and now.
Very, very important.
You have to restart your computer.
If you do not restart your computer right now, we will not be able to read the system variable.
It will be null.
We will not get the value.
So please make sure that you restart your computer so that we can grab the value later on.
Super crucial.
Don't forget it.
I will also remind you once we get to that point, but in best case, like create that one and then
shut down your computer right now, restart it and then continue moving on just so that everything works
fine.
Awesome.
See you in the next lesson.