DEV Community

Discussion on: Deploying Node.js microservices to ZEIT Now

Collapse
 
lcarbonaro profile image
Les Carbonaro • Edited

Not sure I understand how the Nuxt application hooks up to the microservices api from the first section. As far as I can tell, the front-end is getting the bands info from the hard-coded list in api/bands.js, unless I'm missing something.

Collapse
 
julianduque profile image
Julián Duque

Hello Les,

The first section was an example on how to deploy a single microservice, the 2nd section Monorepo consist of two microservices:

  • api/bands.js - Node.js microservice
  • www - Static website generated by Nuxt

api/bands.js is deployed as a microservice in now and doesn't run inside the client code, in the now.json file you can see the configuration and routes for both.

Collapse
 
lcarbonaro profile image
Les Carbonaro

I see. Thanks for clarifying that, Julian, and for taking the time to write about this interesting topic.