简体   繁体   中英

What is the best way to handle node_modules in a microservice architecture project using serverless framework on AWS Lambda?

Here I am using this architecture, please suggest me a better one, I am new in this field.

Project structure

|models
|node_modules
|package.json
|services
    |serviceA
    |      |---handler.js
    |      |---serverless.yml
    |serviceB
    |     |---get.js
          |---delete.js
          |---serverless.yml  

您应该在每个服务目录中都有package.json (和node_modules )-这是必需的,因为否则将不会部署node_modules目录。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM