A real-time code editor built with Node.js, React.js and Socket.io which provides a range of powerful features like instant synchronization of code changes. Every team member has access to the most up-to-date version of the code. Automatic syntax highlighting (currently JavaScript only) optimize code readability, themes allow personalization.
Are you tired of sending code snippets back and forth, struggling to debug and collaborate with your team? Look no further! Sync Code is here to revolutionize the way you code together. This powerful and intuitive collaborative code editor is designed to empower developers, and teams to work seamlessly in real-time, regardless of their location. With Sync Code, you can code together, debug together, and ship faster, together.
npm i -g pm2 to install pm2 globallyundefinedNote: I have used nvm (v0.39.7) to manage my node versions. View nvm official documentation to install it.
To run the docker image, follow the steps below:
docker pull mohitur/code-editordocker run -p 8000:8000 -p 3000:3000 -p 5000:5000 mohitur/code-editorhttp://localhost:3000 to view the appcreate new room button and put a username of your choiceCopy ROOM ID buttonhttp://localhost:3000Now both your editor will be synced and you can see the changes in real time. Try opening the same room in multiple browsers/browsers-windows and see the changes.
undefinedNote: If you are using docker in wsl2/linux then add sudo before the docker commands.
To run the app using docker, follow the steps below:
docker-compose up -dhttp://localhost:3000 to view the appnpm install to install the dependenciesnpm start in one terminalnpm run server:dev or pm2 start server.js in another terminalhttp://localhost:3000 to view the appundefinedNote: To stop your server, press Ctrl+c or if you used “pm2”, then use pm2 stop server.js in the terminal.
undefinedNote: If you find any bugs, create an Issue here. I will try to fix it as soon as possible :)
In case you want to fix it yourself, feel free to make a pull request.
If you want to make contribution to this projects, follow the steps below:
git clone https://github.com/your-github_username/Realtime-Collaborative-Code-Editor.git
git checkout -b your_branch_name
git add . <br>
git commit -m "your commit message" <br>
git push origin your_branch_name
undefinedNote: Please make sure to use your own branch when contributing.
I am Mohd Mohitur Rahaman, a tech geek, currently pursuing a Master’s in Computer Applications (Final Year) from KIIT, Bhubaneswar. And with a deep passion for coding and a strong love for science & technology, I am dedicated to honing my skills and achieving proficiency as a developer.