How arthurlopesmagalhaes/foodiary-api works
Project type and purpose
• This is a Serverless HTTP API built in Node.js/TypeScript, deployed to AWS Lambda behind API Gateway via the Serverless Framework.
• The README confirms it exposes a single “hello” endpoint, has no database, and uses Serverless for deployment, local emulation, and AWS integration.
File structure
• Top-level files: serverless.yml (deployment), esbuild.config.mjs (build), eslint.config.mjs, tsconfig.json.
• src/main: entrypoints and adapters for AWS Lambda (lambdaHttpAdapter, body parsing, error formatting), plus the “hello” function definition (hello.ts).
• src/application: Clean-Architecture application layer (Controller interface, HelloController, HelloUseCase, request/response schemas, HTTP errors).
• src/kernel: Dependency Injection container (Registry, container), decorators (@Injectable, @Schema).
• src/shared: cross-cutting types (constructor, etc.).
• No persistence folder—stateless function.
README for additional insights
• Confirms one HTTP GET endpoint, default public access, local dev with serverless dev, no DB.
• Mentions AWS Lambda + API Gateway V2, encourages adding authorizers for production.