This repository has been archived by the owner on Jun 20, 2022. It is now read-only.
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 #26 from GoogleCloudPlatform/tswast-readmes
update readme to latest tools
- Loading branch information
Showing
5 changed files
with
120 additions
and
23 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,21 @@ | ||
# Markdown Templates for Google Cloud Platform Samples | ||
|
||
The `.mdpp` files in this directory are templates used in READMEs relating to | ||
Google Cloud samples. | ||
|
||
## 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 | ||
|
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,13 @@ | ||
## Before you begin | ||
|
||
1. Download and install the [Google Cloud | ||
SDK](https://cloud.google.com/sdk/docs/), which includes the | ||
[gcloud](https://cloud.google.com/sdk/gcloud/) command-line tool. | ||
|
||
1. Create a [new Google Cloud Platform project from the Cloud | ||
Console](https://console.cloud.google.com/project) or use an existing one. | ||
|
||
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,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/REPO_NAME/archive/master.zip)) | ||
|
||
git clone https://github.com/GoogleCloudPlatform/REPO_NAME.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,44 @@ | ||
## Project Name | ||
|
||
Project description. | ||
|
||
See our other [Google Cloud Platform github | ||
repos](https://github.com/GoogleCloudPlatform) for sample applications and | ||
scaffolding for other frameworks and use cases. | ||
|
||
!INCLUDE ".github/templates/getting-sample-code.mdpp" | ||
|
||
!INCLUDE ".github/templates/before-you-begin.mdpp" | ||
|
||
## Run Locally | ||
|
||
You don't need a valid project ID to run locally, but will need a valid ID to | ||
deploy. | ||
|
||
1. Run the application using the tool of your choice. | ||
|
||
1. Visit the application at [http://localhost:8080](http://localhost:8080). | ||
|
||
## Deploying | ||
|
||
1. Use the [Cloud Console](https://console.cloud.google.com/project) to create | ||
a project ID. | ||
|
||
1. Configure gcloud with your project ID. | ||
|
||
gcloud config set project YOUR-PROJECT-ID | ||
|
||
1. Use gcloud to deploy your app. | ||
|
||
gcloud app deploy REPO_NAME/ | ||
|
||
1. Congratulations! Your application is now live at | ||
your-project-id.appspot.com | ||
|
||
## Contributing changes | ||
|
||
* See [CONTRIBUTING.md](CONTRIBUTING.md) | ||
|
||
## Licensing | ||
|
||
* See [LICENSE](LICENSE) |