Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit 8f2e7d7

Browse files
committed
add services and impl
1 parent ba45d94 commit 8f2e7d7

14 files changed

Lines changed: 7584 additions & 0 deletions

File tree

344 Bytes
Binary file not shown.
6.38 KB
Binary file not shown.
362 Bytes
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
3+
# The Codegen Project - generated files
4+
src/__gen__/channels
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/** @type {import("@the-codegen-project/cli").TheCodegenConfiguration} **/
2+
export default {
3+
inputType: "asyncapi",
4+
inputPath: "../../eventcatalog/asyncapi-files/orders-service.yml",
5+
language: "typescript",
6+
generators: [
7+
{
8+
preset: "channels",
9+
outputPath: "src/__gen__/channels",
10+
protocols: ["nats"],
11+
asyncapiReverseOperations: false,
12+
asyncapiGenerateForOperations: true,
13+
}
14+
]
15+
};
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "order-service",
3+
"version": "1.0.0",
4+
"description": "This service is in charge of processing orders and orchestrating the order lifecycle.",
5+
"main": "index.js",
6+
"license": "MIT",
7+
"scripts": {
8+
"start": "ts-node src/index.ts",
9+
"generate": "codegen generate"
10+
},
11+
"dependencies": {
12+
"typescript": "^5.9.3",
13+
"nats": "^2.29.3"
14+
},
15+
"devDependencies": {
16+
"@the-codegen-project/cli": "^0.56.0",
17+
"ts-node": "^10.9.2",
18+
"@types/node": "^22.13.10"
19+
}
20+
}

0 commit comments

Comments
 (0)