/chat-app

Primary LanguageJavaScript

chat-app

Running with docker compose:

From Root directory:
docker compose up -d


Running with docker run:

Make sure you have your MongoDB daemon running.
systemctl start mongod

Server:

cd server/
docker build --tag chat:server .
docker run -p 5000:5000 -d --network host chat:client

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.


Building the Project:

Server:

cd server/
npm i
npm start

Client:

cd client/
npm i
npm run dev