Initialize environment configuration and enhance API logging
- Added a new .env file for environment variables including database and Redis configurations. - Updated CLAUDE.md with hard rules for development practices. - Enhanced package.json with new scripts for development and infrastructure management. - Integrated Pino for structured logging in the API, replacing the default NestJS logger. - Implemented OpenTelemetry for tracing and monitoring in the API. - Added durationMinutes field to the Mission model in Prisma schema and created corresponding migration. - Updated missions controller and service to handle mission duration and abandonment logic. - Introduced new logger module for consistent logging across the application.
This commit is contained in:
17
package.json
17
package.json
@@ -2,7 +2,13 @@
|
||||
"name": "@fog-expedition/source",
|
||||
"version": "0.0.0",
|
||||
"license": "MIT",
|
||||
"scripts": {},
|
||||
"scripts": {
|
||||
"dev": "pnpm run --parallel dev:api dev:overlay",
|
||||
"dev:api": "NODE_ENV=development pnpm nx serve api",
|
||||
"dev:overlay": "pnpm nx serve overlay",
|
||||
"infra:up": "docker compose up -d postgres redis",
|
||||
"infra:down": "docker compose down"
|
||||
},
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@angular-devkit/core": "~21.2.0",
|
||||
@@ -51,6 +57,7 @@
|
||||
"jsdom": "^27.1.0",
|
||||
"jsonc-eslint-parser": "^2.1.0",
|
||||
"nx": "22.7.1",
|
||||
"pino-pretty": "^13.1.3",
|
||||
"prettier": "~3.6.2",
|
||||
"prisma": "^5.22.0",
|
||||
"ts-jest": "^29.4.0",
|
||||
@@ -74,9 +81,17 @@
|
||||
"@nestjs/platform-express": "^11.0.0",
|
||||
"@nestjs/schedule": "^6.1.3",
|
||||
"@nestjs/throttler": "^6.5.0",
|
||||
"@opentelemetry/auto-instrumentations-node": "^0.75.0",
|
||||
"@opentelemetry/exporter-trace-otlp-http": "^0.217.0",
|
||||
"@opentelemetry/resources": "^2.7.1",
|
||||
"@opentelemetry/sdk-node": "^0.217.0",
|
||||
"@opentelemetry/sdk-trace-node": "^2.7.1",
|
||||
"@opentelemetry/semantic-conventions": "^1.40.0",
|
||||
"@prisma/client": "^5.22.0",
|
||||
"axios": "^1.6.0",
|
||||
"ioredis": "^5.10.1",
|
||||
"nestjs-pino": "^4.6.1",
|
||||
"pino-http": "^11.0.0",
|
||||
"reflect-metadata": "^0.1.13",
|
||||
"rxjs": "^7.8.0",
|
||||
"seedrandom": "^3.0.5",
|
||||
|
||||
Reference in New Issue
Block a user