Reputation: 546
I am trying to figure out what can be the best project directory structure for a serverless application developed using aws also to mention I am using serverless framework. Directory structure I am looking for is a monorepo of multiple micro-services. It should be optimized to accomodate layers, code re-usability, accommodate backend & frontend code, easy to deploy each service individually, should accommodate testing framework so that app is tested in the ci-cd pipeline.
Upvotes: 1
Views: 264
Reputation: 3787
There's no one best directory structure. In general what I'd recommend is:
serverless.yml
file per service.serverless.yml
file or managed by something like terraform, pulumi, etc)Beyond that, you can read more of my thoughts on serverless at (team) scale and on setting up your project so you can develop against the cloud
Upvotes: 1