CoWrite is a collaborative writing platform that allows users to work together on documents in real-time. This project utilizes a Vite React app for the client, with Node.js, Socket.IO, and MongoDB for the server. Users can create and edit documents simultaneously, with changes being instantly reflected across all connected clients.
- Clone the repository:
git clone https://github.com/Malay27/CoWrite.git
- Install dependencies for both the client and server:
# Navigate to the client directory cd CoWrite/client npm install # Navigate to the server directory cd ../server npm install
- Start the client and server:
# Start the client (Vite React app) cd ../client npm run dev # Start the server (Node.js) cd ../server npm start
-
Open your web browser and go to http://localhost:3000 to access the CoWrite application.
-
Create a new document or enter an existing document ID.
-
Share the document ID with collaborators.
-
Collaborate in real-time on the document.
- React
- Vite
- Node.js
- Socket.IO
- MongoDB
The client side of CoWrite is a Vite-based React application that utilizes the Quill text editor. It establishes a socket connection to the server for real-time collaboration.
cd CoWrite/client
npm install
Start the client application:
npm run dev
The server side of CoWrite is built with Node.js, Socket.IO, and MongoDB. It manages the real-time communication between clients and persists document data in MongoDB.
cd CoWrite/server
npm install
Start the server:
npm run devStart
We welcome contributions! Please follow our contribution guidelines.
This project is licensed under the MIT License.