// Module included in the following assemblies:
//
// * cloud_experts_tutorials/cloud-experts-using-cloudfront-and-waf.adoc

:_mod-docs-content-type: PROCEDURE
[id="cloud-experts-using-cloudfront-and-waf-deploy-sample-application_{context}"]
= Deploy a sample application

[role="_abstract"]
Deploy a sample application by using the {oc-first} tool.

.Procedure
. Create a new project for your sample application by running the following command:
+
[source,terminal]
----
$ oc new-project hello-world
----

. Deploy a `hello-world` application:
+
[source,terminal]
----
$ oc -n hello-world new-app --image=docker.io/openshift/hello-openshift
----

. Create a route for the application specifying your custom domain name:
+
.Example
[source,terminal]
----
$ oc -n hello-world create route edge --service=hello-openshift hello-openshift-tls \
--hostname hello-openshift.${DOMAIN}
----

. Label the route to admit it to your custom ingress controller:
+
[source,terminal]
----
$ oc -n hello-world label route.route.openshift.io/hello-openshift-tls route=waf
----