-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #405 from GoogleCloudPlatform/tswast-readmetemplates
Add templates for READMEs.
- Loading branch information
Showing
6 changed files
with
122 additions
and
27 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,23 @@ | ||
# Markdown Templates for Google Cloud Platform Samples for Java | ||
|
||
The `.mdpp` files in this directory are templates used in READMEs relating to | ||
Google Cloud samples for Java. | ||
|
||
## Before you begin | ||
|
||
Install [MarkdownPP](https://github.com/jreese/markdown-pp), a preprocessor for | ||
Markdown files. (Requires Python and PIP) | ||
|
||
pip install MarkdownPP | ||
|
||
## Rendering the templates | ||
|
||
for readme in **/README.mdpp; do | ||
( | ||
cd $(dirname "$readme") | ||
markdown-pp README.mdpp -o README.md | ||
) | ||
done | ||
|
||
Java is a registered trademark of Oracle Corporation and/or its affiliates. | ||
|
14 changes: 14 additions & 0 deletions
14
.github/templates/appengine-flexible-before-you-begin.mdpp
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,14 @@ | ||
## Before you begin | ||
|
||
1. Follow the [quickstart for Java in the App Engine flexible | ||
environment](https://cloud.google.com/appengine/docs/flexible/java/quickstart) to | ||
set up your environment to deploy the sample applications App Engine. | ||
1. Download and install the [Google Cloud SDK](https://cloud.google.com/sdk/docs/). | ||
1. [Install and configure Apache Maven](http://maven.apache.org/index.html). | ||
1. [Create a new Google Cloud Platform project, or use an existing | ||
one](https://console.cloud.google.com/project). | ||
1. [Enable billing for your | ||
project](https://support.google.com/cloud/answer/6293499#enable-billing). | ||
1. Initialize the Cloud SDK. | ||
|
||
gcloud init |
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,21 @@ | ||
## Deploying to App Engine | ||
|
||
To run the application locally, use the Maven Jetty plugin. | ||
|
||
mvn clean jetty:run-exploded | ||
|
||
View the app at [localhost:8080](http://localhost:8080). | ||
|
||
To deploy the app to App Engine, run | ||
|
||
mvn clean appengine:deploy | ||
|
||
After the deploy finishes (can take up to 10 minutes), you can view your application at | ||
`https://YOUR_PROJECT.appspot.com`, where `YOUR_PROJECT` is your Google Cloud project ID. You can | ||
see the new version deployed on the [App Engine section of the Google Cloud | ||
Console](https://console.cloud.google.com/appengine/versions). | ||
|
||
For a more detailed walkthrough, see the [getting started | ||
guide for Java in the App Engine flexible | ||
environment](https://cloud.google.com/java/getting-started/hello-world). | ||
|
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,7 @@ | ||
## Getting the sample code | ||
|
||
Get the latest sample code from GitHub using Git or download the repository as a ZIP file. | ||
([Download](https://github.com/GoogleCloudPlatform/java-docs-samples/archive/master.zip)) | ||
|
||
git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git | ||
|
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
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,24 @@ | ||
# Google App Engine Flexible Environment Java Samples | ||
|
||
This is a repository that contains Java code samples for [Google App Engine | ||
flexible environment][aeflex-docs]. | ||
|
||
See our other [Google Cloud Platform GitHub | ||
repos](https://github.com/GoogleCloudPlatform) for sample applications and | ||
scaffolding for other frameworks and use cases. | ||
|
||
[aeflex-docs]: https://cloud.google.com/appengine/docs/flexible/ | ||
|
||
!INCLUDE "../.github/templates/getting-sample-code.mdpp" | ||
|
||
!INCLUDE "../.github/templates/appengine-flexible-before-you-begin.mdpp" | ||
|
||
!INCLUDE "../.github/templates/appengine-flexible-deploy.mdpp" | ||
|
||
## Contributing changes | ||
|
||
* See [CONTRIBUTING.md](CONTRIBUTING.md) | ||
|
||
## Licensing | ||
|
||
* See [LICENSE](LICENSE) |