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
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.