// Module included in the following assemblies:
//
// * cli_reference/openshift_developer_cli/creating-a-single-component-application-with-odo    

[id="creating-a-nodejs-application-with-odo_{context}"]
= Creating a Node.js application with {odo-title} 

.Procedure 

. Add a component of the type Node.js to your application:
+
----
$ odo create nodejs
----
+
NOTE: By default, the latest image is used. You can also explicitly supply an image version by using `odo create openshift/nodejs:8`.

. Push the initial source code to the component:
+
----
$ odo push
----
+
Your component is now deployed to {product-title}.

. Create a URL and add an entry in the local configuration file as follows:
+
----
$ odo url create --port 8080
----
+
. Push the changes. This creates a URL on the cluster.
+
----
$ odo push
----
+
. List the URLs to check the desired URL for the component.
+
----
$ odo url list
----
+
. View your deployed application using the generated URL.
+
----
$ curl <URL>
----
// Module included in the following assemblies:
//
// * cli_reference/openshift_developer_cli/creating-a-single-component-application-with-odo    

[id="creating-a-nodejs-application-with-odo_{context}"]
= Creating a Node.js application with {odo-title} 

.Procedure 

. Change the current directory to the front-end directory:
+
----
$ cd <directory-name>
---- 

. Add a component of the type Node.js to your application:
+
----
$ odo create nodejs
----
+
NOTE: By default, the latest image is used. You can also explicitly supply an image version by using `odo create openshift/nodejs:8`.

. Push the initial source code to the component:
+
----
$ odo push
----
+
Your component is now deployed to {product-title}.

. Create a URL and add an entry in the local configuration file as follows:
+
----
$ odo url create --port 8080
----
+
. Push the changes. This creates a URL on the cluster.
+
----
$ odo push
----
+
. List the URLs to check the desired URL for the component.
+
----
$ odo url list
----
+
. View your deployed application using the generated URL.
+
----
$ curl <URL>
----

Update step for deploying an odo single application
Update step for deploying an odo single application

Missing important step to change to the Node.JS directory before running
the next command...

Ping @boczkowska @bergerhoffer
