- clone repo
git clone "https://github.com/ShankhadeepBanerjee/socket-chat-app.git"
cd client
npm intsall
- add
config.js
-
- add this
export const ENV = { SOCKET_URL_DEV: 'localhost:5000/', SOCKET_URL_PROD: 'your-url', ENVIRONMENT: "DEV" or "PROD", }
inconfig.js
- add this
npm start
cd server
npm intsall
-
- add this
PORT=5000
in.env
- add this
npm run dev