nodejs-getting-started

1.0.0 • Public • Published

1 - Hello world

This folder contains the sample code for the Hello world tutorial. Please refer to the tutorial for instructions on configuring, running, and deploying this sample.

Simple instructions

  1. Install Node.js.

    • Optional: Install Yarn.
  2. Install git.

  3. Create a Google Cloud Platform project.

  4. Install the Google Cloud SDK.

    • After downloading the SDK, initialize it:

        gcloud init
      
  5. Clone the repository:

    git clone https://github.com/GoogleCloudPlatform/nodejs-getting-started.git
    
  6. Change directory:

    cd nodejs-getting-started/1-hello-world
    
  7. Install dependencies using NPM or Yarn:

    • Using NPM:

        npm install
      
    • Using Yarn:

        yarn install
      
  8. Start the app using NPM or Yarn:

    • Using NPM:

        npm start
      
    • Using Yarn:

        yarn start
      
  9. View the app at http://localhost:8080.

  10. Stop the app by pressing Ctrl+C.

  11. Deploy the app:

    gcloud app deploy
    
  12. View the deployed app at https://YOUR_PROJECT_ID.appspot.com.

Readme

Keywords

none

Package Sidebar

Install

npm i nodejs-getting-started

Weekly Downloads

1

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • ryufarm5