This is the backend for the Code Collab application, which provides real-time collaborative coding features using Node.js, Express, and Socket.io.
-
Clone the repository:
git clone https://github.com/yourusername/CodeCollabBackendNew.git cd CodeCollabBackendNew
-
Install dependencies:
yarn install
To start the server in development mode with hot-reloading:
yarn dev
To start the server in production mode:
yarn start
Create a .env file in the root directory and add the following environment variables:
PORT=5000
ORIGIN=http://localhost:3000
src
├── config
│ └── envVariables.js
├── server.js
└── socket
└── roomSocket
├── createRoomHandler.js
├── disconnectHandler.js
├── joinRoomHandler.js
├── leaveRoomHandler.js
├── roomHandler.js
└── updateHandler.js
utils
└── cleanupDisconnectHandler.js
index.js
package.json
README.md
.gitignore
.editorconfig
.yarnrc.yml