-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
855 additions
and
884 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
**/node_modules/** | ||
npm-debug.log | ||
coverage/ | ||
coverage/ | ||
|
||
test/encrypted/nodejs-docs-samples.json |
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,43 +1,13 @@ | ||
## Express on Google App Engine | ||
## Express.js on Google App Engine | ||
|
||
> [Express](http://expressjs.com) is a minimal and flexible Node.js web | ||
application framework that provides a robust set of features for web and mobile | ||
applications. | ||
> [Express][1] is a minimal and flexible Node.js web application framework that | ||
provides a robust set of features for web and mobile applications. | ||
|
||
You can view the deployed demo app [here](https://express-demo.appspot.com). | ||
Read the [Express.js on App Engine Tutorial][2] for how to run and deploy this | ||
sample app. | ||
|
||
### Create a new Express app | ||
You can also view the [live demo][3] and read the [Express.js documentation][1]. | ||
|
||
View the [Express app generator guide](http://expressjs.com/starter/generator.html). | ||
|
||
### Configure | ||
|
||
Create an `app.yaml` in the root of your application with the following | ||
contents: | ||
|
||
```yaml | ||
runtime: nodejs | ||
vm: true | ||
api_version: 1 | ||
env_variables: | ||
PORT: 8080 | ||
``` | ||
### Deploy | ||
For convenience, you can use an npm script to run the `gcloud` command. Add | ||
these lines to your `package.json` file: | ||
|
||
```json | ||
"scripts": { | ||
"start": "node ./bin/www", | ||
"deploy": "gcloud preview app deploy app.yaml --promote --project <your-project-id>" | ||
} | ||
``` | ||
|
||
At the terminal you can now run the following command to deploy your | ||
application: | ||
|
||
``` | ||
$ npm deploy | ||
``` | ||
[1]: http://expressjs.com/ | ||
[2]: https://cloud.google.com/nodejs/resources/frameworks/express | ||
[3]: http://express-dot-nodejs-docs-samples.appspot.com |
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 |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
# [START app_yaml] | ||
runtime: nodejs | ||
vm: true | ||
api_version: 1 | ||
env_variables: | ||
PORT: 8080 | ||
# [END app_yaml] |
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.