From Root directory:
docker compose up -d
Make sure you have your MongoDB daemon running.
systemctl start mongod
cd server/
docker build --tag chat:server .
docker run -p 5000:5000 -d --network host chat:client
cd client/
docker build --tag chat:client .
docker run -p 5173:5173 -d --network host chat:client
Note: You might want to assign a common network if you are running your MongoDB instance inside a docker container as well instead of sharing the local host.
cd server/
npm i
npm start
cd client/
npm i
npm run dev