Skip to content

[Projects] Add Create Project Route (POST /projects) #54

@nourshoreibah

Description

@nourshoreibah

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions