mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
51 lines
1.8 KiB
Plaintext
51 lines
1.8 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * tutorials/dev-app-cli.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="getting-started-cli-view_{context}"]
|
|
= Viewing the application in a web browser
|
|
|
|
[role="_abstract"]
|
|
After you have deployed the necessary applications and loaded data into the database, you are now ready view your application through a browser. You can get the URL for the application by retrieving the route information for the front-end application.
|
|
|
|
.Prerequisites
|
|
|
|
* You have deployed the `parksmap` front-end application.
|
|
* You have deployed the `nationalparks` back-end application.
|
|
* You have deployed the `mongodb-nationalparks` database application.
|
|
* You have loaded the data into the `mongodb-nationalparks` database.
|
|
|
|
.Procedure
|
|
|
|
. Get your route information to retrieve your map application URL by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get route parksmap
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
|
|
parksmap parksmap-user-getting-started.apps.cluster.example.com parksmap 8080-tcp edge None
|
|
----
|
|
|
|
. From the above output, copy the value in the `HOST/PORT` column.
|
|
|
|
. Add `https://` in front of the copied value to get the application URL. This is necessary because the route is a secured route.
|
|
+
|
|
.Example application URL
|
|
[source,text]
|
|
----
|
|
https://parksmap-user-getting-started.apps.cluster.example.com
|
|
----
|
|
|
|
. Paste this application URL into your web browser. Your browser should display a map of the national parks across the world.
|
|
+
|
|
.National parks across the world
|
|
image::getting-started-map-national-parks.png[Map of the national parks across the world]
|
|
+
|
|
If you allow the application to access your location, the map will center on your location.
|