|
- Added httpLogger middleware to log HTTP requests with status, method, IP, and duration.
- Introduced request middleware to build and store request context.
- Created a centralized middleware initialization function.
- Enhanced logging functionality with different log levels based on HTTP status codes.
feat: Set up routing with error handling
- Established a router package to manage application routes.
- Implemented a custom error handler to respond with appropriate error messages.
- Added sample route for a hello endpoint with authentication requirement.
feat: Introduce utility functions for environment variable management
- Developed functions to retrieve and parse environment variables with default values.
- Implemented a parser to populate configuration structs from environment variables.
feat: Create structured logging with zap
- Integrated zap logger for structured logging with customizable log levels and formats.
- Added color-coded log messages for better visibility in the console.
feat: Build request metadata utilities
- Created utilities to build and manage request metadata, including query parameters, headers, and route parameters.
- Implemented a facade pattern for easier access to request data.
feat: Enhance URL management with namespaces
- Developed a URL management system to handle route registration with namespaces.
- Added functionality to retrieve full paths for registered routes.
chore: Initialize database and application structure
- Set up initial application structure with main entry point and middleware integration.
- Created a database connection handler for graceful shutdown.
|