- Create ingest-api with Koa framework for handling device telemetry. - Implement telemetry ingestion with MongoDB, Redis, and PostgreSQL. - Add API endpoints for telemetry and health checks. - Set up testing with Vitest for unit and end-to-end tests. - Configure Prettier and ESLint for code formatting and linting. - Create Docker Compose setup for PostgreSQL, MongoDB, and Redis services. - Establish contracts package for shared Zod schemas and TypeScript types. - Implement React frontend with device status and greeting functionalities. - Add VS Code setup documentation for onboarding developers.
41 lines
1005 B
JSON
41 lines
1005 B
JSON
{
|
|
"name": "ingest-api",
|
|
"version": "0.0.1",
|
|
"description": "Koa device ingest API",
|
|
"private": true,
|
|
"license": "UNLICENSED",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"start": "tsx src/main.ts",
|
|
"start:dev": "tsx watch src/main.ts",
|
|
"start:debug": "tsx watch --inspect=9230 src/main.ts",
|
|
"lint": "oxlint src/ test/",
|
|
"test": "vitest run",
|
|
"test:e2e": "vitest run --config ./vitest.config.e2e.ts"
|
|
},
|
|
"dependencies": {
|
|
"@koa/cors": "^5.0.0",
|
|
"@koa/router": "^12",
|
|
"contracts": "workspace:*",
|
|
"ioredis": "^5",
|
|
"koa": "^2",
|
|
"koa-body": "^6",
|
|
"mongodb": "^6",
|
|
"pg": "^8"
|
|
},
|
|
"devDependencies": {
|
|
"@types/koa": "^2",
|
|
"@types/koa__cors": "^5.0.1",
|
|
"@types/koa__router": "^12",
|
|
"@types/node": "^24.0.0",
|
|
"@types/pg": "^8",
|
|
"@types/supertest": "^7.0.0",
|
|
"oxlint": "^1.58.0",
|
|
"supertest": "^7.0.0",
|
|
"tsx": "^4",
|
|
"typescript": "^6.0.2",
|
|
"vitest": "^4.1.2"
|
|
}
|
|
}
|