Collaborative Code Editing Made Easy
LocalNetwork-CodeEditor is a collaborative code editing tool that allows multiple users to edit code together in real-time over a local network. It leverages the power of Ace Editor and WebSockets to provide a seamless collaborative coding experience.
Follow these simple steps to set up and run Live Editor On Local Network on your local network:
-
Clone the Repository: π¦
git clone [repository_url] cd live-class-editor
-
Install Dependencies: π
npm install
-
Configure Client: βοΈ Open the
config.js
file in theclient
directory and set theLOCAL_SERVER_IP
variable to the IP address of your local computer. This configuration is necessary for WebSocket communication.const LOCAL_SERVER_IP = "YOUR_LOCAL_IP_ADDRESS";
-
Start WebSocket Server: π
npm start
-
Collaborate in Real-Time: π₯ Open the
index.html
file in a web browser, or have others on your local network visit the IP address where you are hosting the web page. Enjoy seamless real-time collaboration with your team or peers.
- Use your favorite code editor to make changes to the code.
- Changes made by any user will be immediately reflected in the editor of all connected users.
- Cursors indicating the positions of collaborators will be displayed on the editor.
- Enjoy seamless real-time collaboration with your team or peers.
- If you are using Visual Studio Code, you can use the "golive" extension to quickly set up the Live Editor On Local Network.
- By serving the
index.html
file, anyone on your local network can access and collaborate on the code in real-time.
Contributions are welcome! If you would like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and ensure that the code is properly formatted.
- Submit a pull request with a clear description of your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or need further assistance, feel free to contact us at [email protected].
Happy coding! π