- secure user signin/signup with api routes
- successful signin/signup generate
auth tokenthat will be store on cookies - all routes are protected, only register user can access chat, create room, join room etc.
- when user logout all cookies will by default
- Send and receive messages instantly using WebSocket
- Messages are updated live without needing to refresh
- Users can create public chat rooms with unique names
- Users can join existing rooms by entering the room name
- Messages are visible to everyone in the room
- Each message shows sender name, timestamp, and message content
- when any user is not present in room, message will store on db
- Debounced search bar for username search, Users can search for other users by username
- Initiate private one-on-one chats
- DM conversations are private between two users
- Support for bold (text), italic (text) and code(
text) styles using markdown-like syntax
#install dependency
yarn install#db's env
cd packages/db/
cp .env.example .env
cd ../..
#server's env
cd apps/server/
cp .env.example .env
cd ../..#starting the postgres db with docker
docker run --name cmaDB -e POSTGRES_PASSWORD=cmaappadminpassward -p 5432:5432 -d postgres
#migrate db
yarn run db:migrate
#generate client
yarn run db:generate
#optional - show the actual db
yarn run db:showyarn run devNow visit the website localhost:3000
#user 1
username: alice
password: password123
#user 2
username: bob
password: password456
#user 3
username: charlie
password: password789









