Step 2 – create the skeleton of the Media Catalogue Microservice

The next step is to create the Media Catalogue Microservice Node.js and related libraries:

  1. Create a new folder with name media_catalogue_service and within the folder run:
      npm init

This will prompt the user to provide the following information:

    • Name: Leave the default media_catalogue_service and press Enter.
    • Version: Leave the default 1.0.0 and press Enter.
    • Description: Type The Media Catalogue Service is created for the MRA example use case that supports chapter 4 Building and running the Microservice of the book Implementing Oracle API Platform Cloud Service.
    • Entry point: Type server.js, which includes the main logic that is called to run the Node.js microservice.

Get Implementing Oracle API Platform Cloud Service now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.