Setting up the server code

To get started, make sure you are working on the latest code or get a copy from https://github.com/PacktPublishing/Getting-Started-with-Google-Cloud-AI-Services and then install the required dependencies by running the following:

$ npm installor$ yarn install

Once this is done, we will proceed further. In this chapter, we are going to use the Node.js client library for interacting with the translation API.

Get Google Cloud AI Services Quick Start Guide 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.