/cnd-on-pcf-201-workshop

Cloud Native Development on PCF 201 Workshop

Primary LanguageJavaApache License 2.0Apache-2.0

Cloud Native Development on PCF 201 - Workshop

This is the followup of the Cloud Native Development on PCF 101 workshop and will focus more in-depth on several topics of cloud native development. In this workshop you will develop several Spring Boot 2 micro services, deploy them to Cloud Foundry and learn how to setup several of the more advanced scenarios.

Getting started with Pivotal Cloud Foundry

Prerequisites

We expect you to bring:

  • A laptop with Windows, Linux or MacOS
  • A working internet connection
  • An IDE or code editor of your choice

We expect you have installed:

We expect you to have completed the Cloud Native Development on PCF 101 workshop and are familiar with the basics of PCF, Java and Spring Boot.

Login credentials and access to the environment will be provided by the instructor(s).

Verify PCF CLI is working

cf -v

Login to Cloud Foundry:

cf login -a https://api.sys.lropcf.pushto.cf
Email> <provided user>
Password> <provided password>

Build the project

For every exercise we need to build the project:

mvn clean package

In case you don't have Maven installed run:

./mvnw clean package

Run the application locally

Before we push the application to Cloud Foundry run it locally first!

./mvnw spring-boot:run

Open in the browser: http://localhost:8080/

Exercises

Tips

  • Stuck? The exercises have hints to help you!
  • Stuck? Ask your neighbour to pair with you!
  • Stuck? Every exercise has a working solution right here!