Now, to demonstrate what I was talking about
and to show you these different kinds of data and action.
I prepared another project for you,
which we're going to dockerize and what you find attached
to this lecture as a subfile.
It's another note JS example
and its generally a simple application.
In my node server, I have a couple of routes
a couple of supported requests,
you could say, which I wanna handle.
And if you would run this application
which we're going to do later,
you would be presented with this form
which allows you to enter some feedback.
And as part of the application when feedback is submitted,
that feedback is stored in a file.
To be precise it's stored in two files.
A temporary file, which is stored in a temporary file path.
Then I check whether that file already exists
in the final path where I wanna store it ultimately.
And then if it does not exist yet,
I'm going to copy the temporary file
over to the final file path.
And the generated file simply contains the feedback
that was submitted.
This is what this application does,
with some node express code.
And besides this server chase file
we got a couple of folders here.
We got the pagers folder with some HTML pages,
which are being sent back by the server JS file.
So I'm sending this HTML pagers
for different incoming requests.
The feedback HTML file contains the form
so this screen here, for example.
And then we get the public folder with the styles file
which is being hosted.
But then more importantly we got the temp
and the feedback folders which are empty initially.
And the idea behind these folders
is that the temp folder will store
the temporary generated file with the feedback
until we checked whether the file already exists
in the feedback folder,
and if the file does not exist yet
it's going to be copied over.
This is what this application does.
And I created this application,
because in this app we can't see all three kinds of data
in action
We got our application ofcourse, so the source code,
we got temporary data,
what we are going to store in the temp folder.
for example, files which we are going to store
which we're okay with losing.
And we got permanent storage,
that will be the files that will end up
in the feedback folder in the end.
So, we have all three kinds of data here
and we're going to dockerize this up
so that we see which problems we're facing at the moment.
And then we are going to solve these problems
with a couple of tools docker gives us