All right.
We have just pulled mold to image from Docker Hub and we have created for us to know the Jesus container.
And we have basically executed some commands like console lock or assignment or developed to the variable
inside of the interactive interpreter of node Jesus inside of the container.
And now let's create the sample.
Lord Jesus application as we did with Python and let's put it on our local computer and afterwards let's
run it using Lord Jesus container.
Let me clear terminal and the goal to visuals to decode and create here New Folder near folders and
Jenny expire and so on.
Let's close any related to previous projects files and healers.
Create a new folder and let's name it a node like so and here inside of this folder let's create the
new file simply.
Hello Dot.
Jesus like this.
And he and this file.
Let's simply type of console that log.
This application was executed by node Jesus container.
Like so let's save this.
And also you're able to wrap along the lines using a combination of option Z like so and let me hide
that this left pane and we are actually ready to go and we are ready to execute this tiny application
inside of the single file.
Hello de Jesus using Node container.
Let's go to terminal.
And of course you may guess that we need to use here volume mapping in order to map our volume on our
local computer to specific folder inside of the container that we'll be running.
Lord Jesus.
Let's do so let's just Cydia to node folder.
Because we will use the same as before variable be WD and that's why we need to be inside of the folder
that has files that we need to map to contain them.
Let's see the node and here let's.
On container Docker.
Run this VM We will use a volume making a dollar sign be double your next column and bless my but this
local folder to up folder.
Same as we did in Python application and of course let's specify here working direct or inside or the
node container using DSW option and yell its type slash up like so.
And next comes node it is the name of the image that we will use for creation of this container and
afterwards let's override default command that is actually node command using Node plus name of the
file that we want to execute inside of the container.
And for that let's simply type node and next comes name of the file and name of our file is Hello de
Jesus.
Let's hear type Hello de Jesus.
And please note that here with command that will be executed upon a creation of the container.
Here is name of the image.
Great.
Let's press enter and see what will happen.
And I result.
This application was executed by node Jesus container.
And that means that our script.
Hello de Jesus was successfully executed by node Jesus container but after execution of the script process
North process was terminated and container was stopped we could verify it as usually using Docker.
The US command.
There are no containers at the moment.
That's how you are able to run a very simple application using Node GSK container.
And notice that we were not required to create or Batman because this application doesn't require any
external ports but if you create the any for example API using more geos then you'll probably need to
open some ports in order to access the end points API endpoints from external clients.
Great.
That's how we're able to run very simple application is.
But please note that things may become more complicated if you want to install some additional dependencies
using NPM.
Let's try to create a bit more complicated more geo application that will require some additional NPM
modules.
Let's do that next.
My main.