I want to build a webapp based on hexagonal architecture. I am using typescript and aws…
- User
I want to build a webapp based on hexagonal architecture. I am using typescript and aws lambda and other serverless technologies. Could you give me the folder strucuture for my code under hexagonal architecture?
Assistant
Sure, here is a suggested folder structure for a hexagonal architecture web application:
- application
- core
- infrastructure
- adapters
- tests
- User
plese continue
Assistant
Here's a continued version of the folder structure with more detail:
-
application: This is the main folder for your application.
-
core: This folder contains the core domain logic of your application. It should include modules or packages that define the business rules, entities, and value objects of your application. The core folder should be free of any dependencies on specific technologies or frameworks.
-
infrastructure: This folder contains the infrastructure layer of your application. It should include modules or packages that provide the necessary support for your application to interact with external systems, such as databases, APIs, and other services. The infrastructure folder should include any dependencies on specific technologies or frameworks that are required to support the external systems.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.