Skip to content
Projects

joshlong/bootiful-microservices

View on GitHub

About

Public GitHub repository

Other Projects

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Bootiful Microservices HOL

Prerequisites

Develop

Deploy and Manage

Running the Examples

To follow the simple Spring Boot CLI example:

  • in a new file called hi.groovy type:
@RestController
class GreetingsRestController {

  @RequestMapping("/hi/{name}")
  def hi(@PathVariable String name){
    [ greeting : "Hello, "+name+"!" ]
  }
}
  • from the terminal in the same directory as the newly created hi.groovy, run spring jar hi.jar hi.groovy
  • you'll be given a .jar that you can execute: java -jar hi.jar

Pushing to Cloud Foundry

  • cf login to ensure that you've authenticated against your Pivotal Web Services account. My session looked like this, yours will feature your own Cloud Foundry credentials.
> cf login

API endpoint> api.run.pivotal.io

Email> [email protected]

Password>
Authenticating...
OK

Select an org (or press enter to skip):
1. platform-eng
2. codecafe

Org> 1
Targeted org platform-eng

Targeted space joshlong


API endpoint:   https://api.run.pivotal.io (API version: 2.44.0)
User:           [email protected]
Org:            platform-eng
Space:          joshlong
  • cf push -p hi.jar SOME_NAME_YOU_MAKEUP_HERE - the SOME_NAME_YOU_MAKEUP_HERE is arbitrary; it'll inform the URL that's used to mount the application and as such it shares a shared global (DNS) namespace

Explore related projects

Loading…