Skip to content

Commit be726e3

Browse files
committed
example hackernews
1 parent 078c2b8 commit be726e3

5 files changed

Lines changed: 4969 additions & 13 deletions

File tree

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM node:lts-alpine3.19
2+
RUN npm install -g pnpm
23
WORKDIR /app
34
RUN apk add --no-cache bash
45
RUN apk add --no-cache socat
5-
COPY package.json package.json
6-
RUN npm install
6+
COPY package.json pnpm-lock.yaml* ./
7+
RUN pnpm install --frozen-lockfile
78
COPY . .
8-
RUN npm run build
9+
RUN pnpm run build
910
EXPOSE 8080 8081
1011
HEALTHCHECK --interval=10s --timeout=1s --retries=10 CMD wget --spider http://localhost:8081/v1/healthcheck
11-
CMD ["npm", "start"]
12+
CMD ["pnpm", "start"]

examples/hackernews/reactive_service/package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,23 @@
33
"type": "module",
44
"version": "1.0.0",
55
"scripts": {
6-
"build": "tsc"
6+
"build": "tsc",
7+
"start": "node server.js"
78
},
89
"author": "SkipLabs",
910
"license": "MIT",
1011
"description": "",
1112
"dependencies": {
13+
"@skip-adapter/postgres": "0.0.16",
1214
"@skipruntime/core": "0.0.16",
13-
"@skipruntime/wasm": "0.0.16",
14-
"@skipruntime/server": "0.0.16",
1515
"@skipruntime/helpers": "0.0.16",
16-
"@skip-adapter/postgres": "0.0.16"
16+
"@skipruntime/server": "0.0.16",
17+
"@skipruntime/wasm": "0.0.16",
18+
"typescript": "^5.8.3"
1719
},
1820
"devDependencies": {
19-
"@types/node": "^22.10.0",
2021
"@skiplabs/eslint-config": "^0.0.1",
21-
"@skiplabs/tsconfig": "^0.0.1"
22+
"@skiplabs/tsconfig": "^0.0.1",
23+
"@types/node": "^22.10.0"
2224
}
2325
}

0 commit comments

Comments
 (0)