loading...

re: Deploying Node.js microservices to ZEIT ▲ Now VIEW POST

FULL DISCUSSION
 

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.

 

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.

 

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

Code of Conduct Report abuse