Understand the API project structure
masterThe jira_api codebase follows a standard Express and TypeORM architecture. Key directories and files include:
src/index.ts: The entry point for setting up middleware, attaching routes, and initializing the database and Express server.src/routes.ts: Definitions for all public and private routes.src/controllers: Request handlers that interact with entities and the database to perform CRUD operations.src/entities: TypeORM models defining database columns, relations, and validations.src/database: Database-related logic and seed files.src/middleware: Functions that modify requests/responses (e.g.,authenticateUserwhich verifies tokens and attachescurrentUserto the request).src/serializers: Data transformation logic used to format database entities before sending them to the client.src/errors: Custom error definitions and thecatchErrorsutility to handle asynchronous errors without repetitivetry/catchblocks.src/constants: Immutable values used throughout the application.src/utils: Helper functions, such as TypeORM validation utilities.