Giter Site home page Giter Site logo

metallicatony / simpleservice Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 15 KB

A spring boot app hosted in PCF and integrates with AWS hosted service

Home Page: http://metallicatony.blogspot.com/2018/01/spring-boot-application-hosted-in.html

Shell 41.82% Batchfile 32.29% Java 25.88%
spring-boot pivotal-cloud-foundry aws rest api

simpleservice's Introduction

SimpleService

SimpleService is a spring boot application using which the following objectives are accomplished

  1. How to build and deploy a cloud-native app in Pivotal Cloud Foundry (PaaS)
  2. How to host a custom service (oracle) in Amazon AWS Cloud (IaaS)
  3. How to create a CUPS service in PCF and deliver service credentials
  4. How to integrate a PCF app with an AWS hosted service

Blog hosted at: http://metallicatony.blogspot.com/2018/01/spring-boot-application-hosted-in.html

Step 1

Create a AWS free tier account and install a db.t2.micro oracle database standard edition instance that comes as part of free tier. Setup the security group rules in such a way that it allows inbound and outbound connections from outside world.

Step 2

Create a spring boot application by exposing a bunch of services. Use the db credentials from the previous step. The source code from this repository helps for this step. It demonstrates the use of spring boot, spring data and repository concepts.

Step 3

  • Create a PCF free tier account, org and space in your account
  • Download and install cf cli tools in your development environment
  • cf login with your credentials
  • cf push with a manifest file already provided as part of the source or manually push by using cf push SimpleServiceApp -p target/simpleservice-1.0.0.jar -b https://github.com/cloudfoundry/java-buildpack.git

Step 4

  • Create user provided service instance in pivotal cloud foundry to deliver the uri and service credentials cf cups oracle-aws -p '{"uri":"oracle://admin:[email protected]:1521/ORCL"}'
  • Validate in PCF dashboard

Step 5

Bind the oracle-aws service with SimpleServiceApp either through manifest file or manually by using cf bind-service SimpleServiceApp oracle-aws. Either restage or push your app again to PCF.

Step 6

Test the app by using a browser or rest client https://simpleserviceapp.cfapps.io/applications/

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.