A group chat app built using the MERN stack and Socket.io.
This repository contains the frontend for ChatApp created using React.
npm install
Change the socket server URL in /src/socket/socket.jsx
in the following format :
export const socket = io('<YOUR_SOCKET_SERVER_URL>', {withCredentials: true, autoConnect: false})
Change the backend server URL in /src/utils/axiosconfig.js
in the following format :
export function configureAxios() {
axios.defaults.baseURL = '<YOUR_BACKEND_SERVER_URL>'
axios.defaults.withCredentials = true
}
npm run dev
npm run build