dcaron / workshop-fortune-service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pivotal Cloud Foundry Workshop - Fortune Cookie Service

This workshop get you up to speed with Pivotal Cloud Foundry. In this workshop you are going to develop a Spring Boot 2 micro service and deploy it to Cloud Foundry.

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:

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.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

About


Languages

Language:Java 100.0%