Great chapter. I could really use examples of a monorepo.
What are best practices if mulitiple services use the same dynamodo or Cognito setup.
How do you deploy multiple services with the same domain? Example - api.example.com?
I feel a chapter on this would be amazing. People are using monorepos but there are not examples outside of claiming you put severless.yml in different folders.
Thats a great point. Thanks for feedback. I’m going to write a couple of chapters on these very shortly. But here is the general idea:
Thank you so much @jayair this is a good start. Look forward to seeing the chapters. This guide has been indispensable and one of the best technology books/tutorials I have seen in my long career doing web development.
Thank you! I’m glad you’ve found it helpful!
node_modules/dir) are at the root of the repo. However, it is fairly common to have a separate
package.jsoninside each service directory.
I think it would be interesting to expand on that a bit. The example provided is great but does not illustrate how to handle dependencies, and shared code between services which is a fairly common issue