3.7. Viewing the application in a web browser
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
parksmapfront-end application. -
You have deployed the
nationalparksback-end application. -
You have deployed the
mongodb-nationalparksdatabase application. -
You have loaded the data into the
mongodb-nationalparksdatabase.
Procedure
Get your route information to retrieve your map application URL by running the following command:
$ oc get route parksmapExample output
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/PORTcolumn. 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
https://parksmap-user-getting-started.apps.cluster.example.comPaste this application URL into your web browser. Your browser should display a map of the national parks across the world.
그림 3.1. National parks across the world
If you allow the application to access your location, the map will center on your location.