Users will provide a username and be allowed to enter a chatroom where they can share messages with other users in realtime
Hosted here.
If you would like to simulate multiple users chatting you can open 2 sessions, but it's best if they are on different browsers. The app uses cookies to keep track of sessions, and most browsers save cookies globally across tabs(even incognito) so your sessions will conflict. The easiest is to use 2 different browsers.
Frontend/Backend
: Deno Fresh 🍋
DB
: MongoDB
WS
: Deno Websockets
serve-ws/
contains initial Websocket server before I migration to the fresh backend
- create a
.env
file infresh-ws/
:
FRESH_ENVIRONMENT="dev"
MONGO_URL="<your mongo url>"
APP_URL="localhost:8000"
WS_PTCL="ws://"
HTTP_PTCL="http://"
cd fresh-ws
deno task start
(make sure to install deno)