O'Reilly logo

Hands-On Microservices with Node.js by Diogo Resende

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating our microservice

Similar to what we did before, these are the steps we need to perform before successfully deploying to our new cluster:

  1. Create our docker image that will use our MySQL instance.
  2. Create credentials to access the instance.
  3. Create the configuration for our service.
  4. Deploy it.

First, notice the pencil icon in the top-right corner of the console. It's an online editor we can use to create the files we need:

Click on it. It should open a new tab with an empty editor. This represents the root folder of the console you have on the bottom:

Let's start by creating our package.json file. Go to File and click New, and then ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required