Skip to content

Commit 2f9075c

Browse files
committed
example chatroom
1 parent 04695e2 commit 2f9075c

8 files changed

Lines changed: 7913 additions & 12 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"]

0 commit comments

Comments
 (0)