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

Using Hydra

As you may remember, Hydra has a scaffolding command that helps to bootstrap our service quickly. Let's use it, and prepare our base layout. Run yo fwsp-hydra and answer the questions. You can leave most of them as default. Depending on the versions you'll use, you should get something similar to the lines shown here:

fwsp-hydra generator v0.3.1   yeoman-generator v2.0.2   yo v2.0.1? Name of the service (`-service` will be appended automatically) imagini? Your full name? Diogo Resende? Your email address? dresende@thinkdigital.pt? Your organization or username? (used to tag docker images) dresende? Host the service runs on?? Port the service runs on? 3000? What does this service do? Image thumbnail and manipulation? Does this service ...

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