Git Product home page Git Product logo

healthcare-openpayment-data's Introduction

Spring Boot Microservice written in Kotlin

This project shows how to write a Spring Boot Microservices using Kotlin. To get more information about this project please go here.

How to run this application

You will need to build the application.

$ gradle assemble

The command will generate healthcare-openpayment-data-1.0.jar under

$ projectlocation/build/libs

You will then need to run the jar using the following command

$ java -jar build/libs/healthcare-openpayment-data-1.0.jar

You can also run the unit tests as well as the Cucumber tests.

$ gradle build

Running it in OpenShift

Create a docker image

$ docker build -t ealberto/openpaymentdata .

Push docker image to Docker Hub

$ docker push ealberto/openmaymentdata

note: You will need to have a DockerHub account.

Deploying in OpenShift via Minishift

Redhat provides a real easy way to run OpenShift locally using Minishift. Minishift is a single-node OpenShift cluster running inside a virtual machine.

To install Minishift, follow the directions in this installation guide. As a note, I'm running these examples in MacOSX but I use VirtualBox as my VM driver.

$ minishift start --vm-driver=virtualbox

Accessing to the OpenShift CLI (oc)

$ minishift oc-env
$ eval $(minishift oc-env)

Deploying the application to OpenShift

To deploy the application, you will need to set a few environment variables. Please copy openshift.env.template into another openshift.env and update the variables accordingly. Please note that we are using a Docker image (ealberto/simpleshift) hosted in Dockerhub to create the application. So, before you can run the following command, please make sure you have built your docker image.

$ oc new-app ealberto/openpaymentdata
$ oc expose svc/openpaymentdata

Open the application in the browser

$ minishift openshift service openpaymentdata -n open-payment-data

healthcare-openpayment-data's People

Contributors

erwindev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.