A web-based Collaborative Code Editor that allows multiple users to edit code together in real-time.
Collaborative Code Editor is a web application that enables developers to collaborate on code projects in real-time. It provides a shared code editing environment where multiple users can simultaneously make changes and see each other's updates in real-time.
The project consists of a client-side code editor, a WebSocket server for real-time communication, and a server-side document management system using ShareDB.
- Real-time collaboration: Multiple users can edit the same document simultaneously, and changes are synchronized in real-time.
- Syntax highlighting: The code editor supports syntax highlighting for popular programming languages.
- User-friendly interface: The code editor provides a user-friendly interface with features like line numbers, auto-indentation, and code completion.
- Clone the repository:
git clone https://github.com/PralinKhaira/collaborative-code-editor.git
- Install dependencies:
cd collaborative-code-editor
npm install
- Start the server:
node server.js
- Open the application in a web browser:
http://localhost:3000
- Open the Collaborative Code Editor application in a web browser.
- Start editing the code in the code editor.
- Share the document URL with other users to collaborate with them.
- Changes made by other users will be automatically synchronized and reflected in your code editor.
The following configuration options are available in the server.js
file:
- Port: You can modify the port on which the server runs. By default, it is set to
3000
. - Database connection: You can configure the database connection settings if using a specific database.
Contributions to the Collaborative Code Editor project are welcome! To contribute, follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submit a pull request, explaining your changes.
Please ensure that your code follows the project's coding conventions and includes appropriate tests.
This project is licensed under the MIT License.