Giter VIP home page Giter VIP logo

pcf-ers-demo's Introduction

Build Status Download

PCF Elastic Runtime Service (ERS) Base Demo

Base application to demonstrate PCF ERS

Credits and contributions

As you all know, we often transform other work into our own. This is all based from Andrew Ripka's cf-workshop-spring-boot github repo with some basic modifications as follows:

  • Split into client (REST client and UI) and server (service)
  • Introduce thymeleaf fragments
  • Introduce Spring Cloud Netflix client projects (Hystrix and Feign with Ribbon, but no Eureka)
  • Introduce Spring profiles
  • Basic Concource CI / CD (create tracker?)

Note: Our goal is to have the blueprint to deploying a cloud native application based on Spring Cloud and Spring Framework.

Introduction

This base application is intended to demonstrate some of the basic functionality of PCF ERS:

  • PCF api, target, login, and push
  • PCF environment variables
    • Spring Cloud Profiles
  • Scaling, self-healing, router and load balancing
  • RDBMS service and application auto-configuration
  • Spring Boot, Data (JPA, REST, HATEOS), Cloud, Netflix

Spring Cloud Netflix (Client focus)

  • Feign - declarative REST Client w/ Ribbon (no Eureka)
  • Hystric circuit breaker and dashboard

Getting started

Start by downloading the course materials. This can be accomplished either through the GitHub website or if you have Git installed, use the following commands:

$ git clone https://github.com/cbusch-pivotal/SpringCloudWorkshop
$ cd SpringCloudWorkshop/
$ ./mvnw clean install

Prerequisites

To run the application locally

The application is set to use an embedded H2 database in non-PaaS environments, and to take advantage of Pivotal CF's auto-configuration for services. To use a MySQL Dev service in PCF, simply create and bind a service to the app and restart the app. No additional configuration is necessary when running locally or in Pivotal CF.

In Pivotal CF, it is assumed that a Pivotal MySQL service will be used.

$ ./mvnw spring-boot:run

Then go to the http://localhost:8080 in your browser

Demo Scripts summary

Just enough to run the demo, for detail follow the demo documentation.

CF PUSH doc : - Deploying an application

This demo is the very first introduction to PCF. First you walk the customer thru Pivotal Apps Manager, then CF CLI where you'll deploy the application.

  1. Explain the CF CLI in particular the concept of API and TARGET (connect with your Pivotal Apps Manager walk-thru) * cf api - change if necessary * cf login - it may prompt for org and space
  2. Explain the application deployment process (staging, buildpack, manifest)
    * cf push - manifest.yml name and path may need to be adjusted
  3. Show the application * cf app [attendees] - unless name changed * Show in Apps Manager and Access it via route

pcf-ers-demo's People

Contributors

patrickcrocker avatar

Watchers

James Cloos avatar  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.