-
Couldn't load subscription status.
- Fork 0
Open
Labels
Description
User Story
As a user I want to create a new project in the Projects table.
Description
- Add the POST /projects route to the existing projects Lambda using:
node tools/lambda-cli.js add-route projects POST /projects --body name:string,total_budget:number --status 201 - If the projects Lambda does not exist, create it first with:
node tools/lambda-cli.js init-handler projects - Implement insert logic using Kysely for type-safe SQL.
- Test using Swagger UI and create Jest unit tests for success and validation failures.
Acceptance Criteria
- Route successfully creates a project record in the local database.
- Swagger returns 201 with created project data.
- Jest tests pass for valid and invalid input payloads.