Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
c49fdce
create the server
AhmadHmedann Aug 11, 2026
68f6a5a
Create Get endpoint
AhmadHmedann Aug 11, 2026
b0d6ba6
Implement message validation and POST endpoint
AhmadHmedann Aug 11, 2026
abb01fe
Implement message validation and POST endpoint
AhmadHmedann Aug 11, 2026
e36935b
add id and creation time for the message
AhmadHmedann Aug 11, 2026
2f3b228
Fix: UTF-8 request body decoding
AhmadHmedann Aug 11, 2026
285d1f6
Fetch and sort messages by creation time
AhmadHmedann Aug 12, 2026
9ff987a
Create message card from HTML template
AhmadHmedann Aug 12, 2026
3fb34aa
display fetched chat messages
AhmadHmedann Aug 12, 2026
e1a3779
feat: send message
AhmadHmedann Aug 12, 2026
8bc1048
feat:live update
AhmadHmedann Aug 12, 2026
242f532
feat: add css style
AhmadHmedann Aug 12, 2026
7ff08eb
fix : Buffer with capital B
AhmadHmedann Aug 12, 2026
65624e8
Add docker file
AhmadHmedann Aug 13, 2026
d829acd
Update the server
AhmadHmedann Aug 13, 2026
6aeb496
feat: add live updates using polling
AhmadHmedann Aug 13, 2026
eeb13c5
feat: long polling
AhmadHmedann Aug 14, 2026
4c2a6aa
fix: handle polling when there are no messages.
AhmadHmedann Aug 14, 2026
484c023
refactor: organise functions
AhmadHmedann Aug 14, 2026
57dca7f
refator: separate polling and shared fuction code
AhmadHmedann Aug 16, 2026
76da84f
feat: configure WebSocket server and accept connections.
AhmadHmedann Aug 16, 2026
201e6e3
feat: receive and parse WebSocket messages
AhmadHmedann Aug 16, 2026
2d33e39
feat: validate the message and store it
AhmadHmedann Aug 16, 2026
82f02ac
broadcast messages to WebSocket Clients
AhmadHmedann Aug 16, 2026
ec46c10
feat: send message history over websocket
AhmadHmedann Aug 17, 2026
3994ac1
feat: configure the frontend to connect with the serever
AhmadHmedann Aug 17, 2026
5834fd2
feat: receive and display WebSocket messages
AhmadHmedann Aug 17, 2026
6653c16
feat: handle submit message (live update)
AhmadHmedann Aug 17, 2026
2d295b3
feat: show success feedback for a second after sending a message
AhmadHmedann Aug 17, 2026
b65b1fd
refactor:
AhmadHmedann Aug 17, 2026
59f4596
feat: add like and dislike reactions
AhmadHmedann Sep 3, 2026
4bcb567
clean the code
AhmadHmedann Sep 3, 2026
ad96cc3
rename: websocket.html to index.html
AhmadHmedann Sep 3, 2026
4c97b41
rename: websocket.html to index.html
AhmadHmedann Sep 3, 2026
82ecab1
Add deployment links for front-end and back-end
AhmadHmedann Sep 3, 2026
eb752b2
Delete Chat-App-deployment.md
AhmadHmedann Sep 3, 2026
863ec3d
Merge remote-tracking branch 'chat-app/main'
AhmadHmedann Sep 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:alpine
ENV NODE_ENV=production
COPY . /app
WORKDIR /app
RUN npm --omit=dev ci
ENTRYPOINT ["node", "websocket-server.mjs"]
1 change: 1 addition & 0 deletions backend/node_modules/.bin/node-gyp-build

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/node_modules/.bin/node-gyp-build-optional

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/node_modules/.bin/node-gyp-build-test

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading