Skip to content

devopscicd17/nationalparks

 
 

Repository files navigation

NationalParks backend application

This application is a backend that provides geolocation information about NationalParks. The information is stored in a mongodb

Hello DevD == Installation As the application needs to interact with openshift’s API, you’ll need to provide some permissions to the default ServiceAccount for that.

Assuming you’re using the project workshop:

oc new-project workshop
oc policy add-role-to-user view system:serviceaccount:workshop:default

Deploy from source code

oc new-app https://github.com/openshift-roadshow/nationalparks.git

Deploy via Template

oc create -f ./ose3/application-template.json
oc new-app nationalparks

There’s some options that can be parameterized:

  • APPLICATION_NAME: Name of the application

  • MAVEN_MIRROR_URL: Url of a maven mirror

  • APPLICATION_HOSTNAME: Hostname/route to access your application

Example: Hello World Hello World hello word

oc new-app nationalparks -p APPLICATION_HOSTNAME=nationalparks-roadshow.127.0.0.1.xip.io -p MAVEN_MIRROR_URL=http://nexus.ci:8081/content/groups/public

Dataset

National Parks data comes from ProtectedPlanet, listing worldwide National Parks categories, filtered as units shown here

We used this query listing 2830 National Parks at the moment.

test testing SITA RAM HANUMAN SITA RAM HANUMAN SITA RAM HANUMAN Sita Ram Sita Ram Hello Test Hello World

About

Backend component to display nationalparks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Java 99.2%
  • Dockerfile 0.8%