A real-time collaborative code editor built with React, Node.js, and Socket.io.
- Real-time code synchronization
- Monaco Editor integration
- Multiple user support
- Room-based collaboration
- Node.js (v14 or higher)
- MongoDB
- npm or yarn
- Navigate to the backend directory:
cd backend- Install dependencies:
npm install- Create a .env file with the following variables:
PORT=3001
MONGODB_URI=mongodb://localhost:27017/code-collab
NODE_ENV=development
- Start the development server:
npm run dev- Navigate to the frontend directory:
cd frontend- Install dependencies:
npm install- Start the development server:
npm run devThe application will be available at:
- Frontend: http://localhost:5173
- Backend: http://localhost:3001
-
Frontend:
- React with TypeScript
- Vite
- Monaco Editor
- Socket.io Client
- Styled Components
-
Backend:
- Node.js
- Express
- Socket.io
- MongoDB
- Mongoose