This repository has been archived by the owner on Nov 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated for Spring Cloud 1.0. Added demo script.
- Loading branch information
1 parent
8816666
commit 5e7ec49
Showing
7 changed files
with
847 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
= Building a Cloud-ready Microservice | ||
|
||
This repository contains a link:demo-script.adoc[script] for demonstrating the construction of a REST microservice using Spring Boot, Spring Data, and Spring Cloud, and deploying the microservice to Cloud Foundry. | ||
|
||
The repository also contains the completed example, ready for deployment to Cloud Foundry. | ||
|
||
To build and deploy the completed application, you will need to: | ||
|
||
* install http://www.gradle.org/installation[Gradle] | ||
* install the http://docs.cloudfoundry.org/devguide/installcf/install-go-cli.html[Cloud Foundry CLI] | ||
* use the Cloud Foundry CLI to http://docs.cloudfoundry.org/devguide/installcf/whats-new-v6.html#login[log into your Cloud Foundry system] | ||
Once these prerequisites are met, you can follow these steps to build and deploy the microservice to Cloud Foundry: | ||
|
||
[source,bash] | ||
---- | ||
$ gradle assemble | ||
$ cf create-service p-mysql 100mb-dev cities-db | ||
$ cf push --random-route | ||
---- | ||
|
||
See the link:demo-script.adoc[script] for additional information on using and testing the microservice. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.