Giter VIP home page Giter VIP logo

bootiful-microservices's Introduction

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

bootiful-microservices's People

Contributors

cwest avatar joshlong avatar marcingrzejszczak avatar

Watchers

 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.