Coder Social home page Coder Social logo

sompalkar / realtime-code-editor Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.8 MB

Realtime Code Editor

Home Page: https://codesynccc.vercel.app/

JavaScript 91.68% HTML 1.06% CSS 7.25%
code express nodejs reaactjs realtime-database realtime-rendering tailwindcss websockets

realtime-code-editor's Introduction

Collaborative Code Editor with Real-time Sync

This project is a collaborative code editor that allows multiple users to write and edit code in real-time. It also includes features like chat, code synchronization, and real-time updates.

Technologies Used

  • Frontend:

    • React.js for building the user interface.
    • Socket.io-client for handling real-time communication.
    • react-hot-toast for displaying toast notifications.
    • react-router-dom for client-side routing.
  • Backend:

    • Node.js with Express for the server.
    • Socket.io for real-time communication between clients.
    • axios for making HTTP requests to an external API.

How it Works

  1. Real-time Collaboration:

    • Users can join a shared coding room using a unique Room ID.
    • Each user has their own code editor, and changes are synchronized in real-time with other users in the same room.
  2. User Interaction:

    • Users can see a list of connected clients (users) in the sidebar.
    • Real-time updates for user join/leave events and chat messages are displayed using toast notifications.
  3. Code Execution:

    • The code entered by users can be executed using an external API (Glot.io).
    • The API is called when users run the code, and the output is synchronized with other users in the same room.
  4. Dynamic Room Creation:

    • Users can create or join different rooms using unique Room IDs.
    • Room IDs can be copied to the clipboard for easy sharing.

How to Run

  1. Install Dependencies:
    # Install dependencies for both frontend and backend
    npm install

realtime-code-editor's People

Contributors

sompalkar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.