A "Hello World" server in node.js sample for Google Cloud Platform. This repo contains a complete sample of a node.js program that you can deploy on Google Cloud Platform. Before jumping into the code, make sure you have a Google Account. If you don't already have a Google Account (Gmail or Google Apps), you must create one. Sign-in to Google Cloud Platform console and create a new project
-
Clone the hellonode sample app repository by typing the following git command in the shell
git clone https://github.com/vikram216/hellonode.git -
Change the directory to hellonode
cd hellonode
- Install dependencies for this project by entering the following command:
npm install - Run the start script
npm start - Click the Web preview button and select Preview on port 8080 on the google cloud shell to open the deployed web app in a new tab

You can see the Hello World message from the sample app displayed in the page.
In google cloud shell, press Ctrl+C to exit the web server.
To deploy your app to the App Engine flexible environment:
- Deploy the hellonode app by running the following command from the hellonode directory:
gcloud app deploy - Launch your browser and view the app at http://<YOUR_PROJECT_ID>.appspot.com, by running the following command:
gcloud app browse
