Enhance Serverless Task Manager infrastructure and documentation - #1
Merged
Conversation
…ger infrastructure - Created `template.yaml` for defining AWS resources including VPC, DynamoDB, Cognito, API Gateway, and Lambda functions. - Added detailed README.md to explain the purpose, architecture, deployment steps, and parameters for the infrastructure setup.
…da handlers from backend source
…L fixes and documentation alignment
…upport agentic engineering
…erved concurrency
…rocess and S3 upload instructions
…AM, and networking
…template improvements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request refactors the backend task handler code to support both Express and AWS Lambda environments, enabling code reuse and consistent API responses across both. It introduces dual exports (
handlerfor Express,lambdaHandlerfor Lambda) for each handler, adds shared utilities for Lambda response formatting and authentication parsing, and updates the code to maintain consistent response shapes and error handling. Documentation is also added to explain the migration strategy and template audit findings.Backend Handler Refactoring for Dual Express/Lambda Support:
createTask.js,getTasks.js,updateTask.js,deleteTask.js,updateTask.js) now export bothhandler(Express) andlambdaHandler(Lambda) functions. Lambda handlers parse API Gateway events, extract user info from Cognito claims, and return API Gateway-compatible responses, while Express handlers retain their original shape. [1] [2] [3] [4]jsonResponse,parseJsonBody,getUserId) are added inbackend/src/shared/lambda.jsto standardize response formatting and user authentication extraction for Lambda handlers.Error Handling and Validation Consistency:
userId,taskId) and return appropriate status codes and error messages for missing fields, permission issues, or server errors, matching Express and Lambda behaviors. [1] [2] [3]Node.js and Dependency Updates:
backend/package.jsonnow specifies Node.js 24+ as the required engine to align with Lambda runtime requirements.Documentation and Migration Planning:
brainstorm-lambda-handlers-2026-05-31.md) and a template audit with recommendations for deployment and template fixes (brainstorm-template-audit-2026-05-31.md). [1] [2]Minor/Other:
authMiddleware.jsand small cleanups infrontend/package-lock.json, are included. [1] [2]These changes ensure the backend codebase is ready for AWS Lambda deployment without breaking local Express development, and that API behavior remains consistent across environments.