Hi team, I’m new with Serverless Stack and wondering how I should structure my project. Currently I have an Express API with models, controllers, and services. For the models I’m using Sequelize ORM, these models are used in different services.
My question is about how should I reuse my models and services in my functions (controllers)?
Should I create functions for every model and call them from my services?
Should I create functions for every service and call them from my controllers?
I’ll use AWS Lambda functions, NodeJS and MySQL
An example, tutorial, blog… will be appreciated
Thanks in advance