*** database architecture [] chats table - chatId - firstName - lastName - email - password - room_id
[] rooms table - roomId - host_id -
what is done as of now
user -
registration
login
rooms-
create rooms
join-room
now just have to redirect the user to the room and then
upgrade the connection to the websocket connection and also other user should be able to join
2 the next feature would be to invite the user or add the user by host only
- write a websocket connection to exchange user
- detailed process
- user already have a jwt token issued to them
-
introducing a middleware to check the user token and verify the user token
-
for that I have already a jwt library to issue and validate the token
-
jwt-v5 --> done
-
In fronted I have to use axios because of the token that I want to send with every request going to the backend axios --> done
-
validated the
jwtissued to the user, upon successful attached to the context of the request for further processing -
issue user jwt token upon requested to join the room and then also create a middleware to validate the user then add to the context for further processign [date - tuesday 5: 51 pm done]