Skip to content

Commit 078c2b8

Browse files
committed
example chatroom
1 parent 04695e2 commit 078c2b8

10 files changed

Lines changed: 6650 additions & 19 deletions

File tree

examples/chatroom/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ event-store serving as the primary data source-of-truth and a Skip reactive
99
service providing reactive computations and real-time streaming to clients.
1010

1111
In order to run it, do:
12+
1213
```
1314
$ docker compose build
1415
$ docker compose up

examples/chatroom/compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
services:
1+
services:
22
# Reverse proxy
33
haproxy:
44
image: reactive-chatroom/reverse_proxy
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
FROM node:lts-alpine3.19
2+
RUN npm install -g pnpm
23
WORKDIR /app
3-
COPY package.json package.json
4-
RUN npm install
4+
COPY package.json pnpm-lock.yaml ./
5+
RUN pnpm install --frozen-lockfile
56
COPY . .
6-
RUN npm run build
7+
RUN pnpm run build
78
EXPOSE 8080 8081
89
HEALTHCHECK --interval=10s --timeout=1s --retries=10 CMD wget --spider http://localhost:8081/v1/healthcheck
9-
CMD ["npm", "start"]
10+
CMD ["pnpm", "start"]

examples/chatroom/reactive_service/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
"license": "MIT",
1010
"description": "",
1111
"dependencies": {
12+
"@skip-adapter/kafka": "0.0.16",
1213
"@skipruntime/core": "0.0.16",
13-
"@skipruntime/wasm": "0.0.16",
14-
"@skipruntime/server": "0.0.16",
1514
"@skipruntime/helpers": "0.0.16",
16-
"@skip-adapter/kafka": "0.0.16",
17-
"kafkajs": "^2.2.4"
15+
"@skipruntime/server": "0.0.16",
16+
"@skipruntime/wasm": "0.0.16",
17+
"kafkajs": "^2.2.4",
18+
"typescript": "^5.8.3"
1819
},
1920
"devDependencies": {
2021
"@skiplabs/eslint-config": "^0.0.1",

0 commit comments

Comments
 (0)