Start with Node.js on Google Cloud Platform

Start with Node.js on Google Cloud Platform
Average rating: 0
(0 votes)

Google Cloud Platform (GCP) provides a host of options for Node developers to easily deploy the apps. If you read our blog, it means you’re familiar with developing simple Node applications, working with the command line, and have some high level understanding of deploying apps to cloud services. Ok, so let’s start with Node.js on Google Cloud Platform then.

Deploying a Node app to App Engine is quite simple. Create a new project in Google Cloud Console, add   app.yaml configuration file in our code directory (which describes the node runtime we want to use — lets use Node 8), and run gcloud app deploy on our terminal — and done!

Here is what we need to do:

1.Put the code on GitHub

  • Head over to GitHub to create a new repository
  • Then follow the instructions to push code from your machine to GitHub

2. Enable Cloud Build

  • Enable the Cloud Build API for the project
  • Enable the App Engine API for the project.
  • Grant App Engine IAM to Cloud Build Service account by going to the IAM page, find this service account <project-id>@cloudbuild.gserviceaccount.com, edit it and give it the App Engine Admin role.

3. Create a Cloud Build configuration file

All the sections had a sample app: Hello World for App EngineHello World for Kubernetes Engine and Hello World for Cloud Functions.

You can find them all here.

If you’re looking for a new functional reactive HTTP framework on top of Node.js, let’s go briefly through the main important things that the newest release of Marble.js has.

Rate this article, if you like it

Thanks! You’ve rated this material!

Got a project? Let's discuss it!

*By submitting this form you agree with our Privacy Policy.

Mailing & Legal Address

Syndicode Inc. 340 S Lemon Ave #3299, Walnut CA, 91789, USA

Visiting & Headquarters address
Kyiv Sofiivska 1/2a, 01001, Kyiv, Ukraine
Dnipro Hlinky 2, of. 1003, 49000, Dnipro, Ukraine
Email info@syndicode.com
Phone (+1) 9035021111