Skip to Content
Practical Microservices
book

Practical Microservices

by Ethan Garofolo
April 2020
Intermediate to advanced
292 pages
6h 50m
English
Pragmatic Bookshelf
Content preview from Practical Microservices

Mounting the Home Application into Express

Head back to the file where we mount all of the routes in Express:

 function​ mountRoutes (app, config) {
  app.use(​'/'​, config.homeApp.router)
 }

All we do is get the homeApp out of config and then mount its router at the very root. That seems like a good place for a home page.

And that’s it! You’ve set up the home application, and if you start the server—npm run start-dev-server—you can navigate to http://localhost:3000 and just imagine what it would be like watching all these videos that our content creators are going to upload. All the learning!

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microservices in Action

Microservices in Action

Morgan Bruce, Paulo A Pereira
Microservices: Up and Running

Microservices: Up and Running

Ronnie Mitra, Irakli Nadareishvili
Kubernetes Best Practices

Kubernetes Best Practices

Brendan Burns, Eddie Villalba, Dave Strebel, Lachlan Evenson

Publisher Resources

ISBN: 9781680507782Errata Page