DEV Community

Cover image for Introducing Collab - Realtime Code Collabration tool
Rajesh khadka
Rajesh khadka

Posted on • Updated on

Introducing Collab - Realtime Code Collabration tool

Overview of My Submission

Collab is Realtime code sync tool where one user can collab to any other user to write code at a same time. Beside this, user can save written code snippets to the website by creating profile in the website. Why don't you try it yourself πŸ‘‰ ? open website.

I have seen a lot of people who writes code in google docs while appearing the interview (specially while performing coding round). So, I was thinking to build a project to address this problem. At the same time dev community announced the hackathons & I thought this would be the right time to build project which ultimately gave birth to collab.

Apart of this, hackathon is also the one of the reason to build this application !

Submission Category:

The submission category of project is MEAN/MERN Mavericks.

Video Explaining of My Project

Language Used

I used Node.js runtime envirounment for building the application.
Apart of this, Collab is built under the following technologies and packages:

  • React JS (Frontend)
  • Redis OM (Redis JSON, Redis Search)
  • Socket.io (For realtime communication)

Ultimately, the my tech stack for the project is RERN (Redis, Express, React, Node).

Link to Code

GitHub logo rajeshkhadka200 / collab

A realtime code-sync tool, Collab is the platform for any developer or a code enthusiasts who wants to collaborate with other developer around the globe.

Introducing Collab - Realtime Code Collabration tool .

Collab is Realtime code sync tool where users can collab to others developers to write code on a same time. Beside this, user can save written code snippets to the website by creating profile in the website.

Overview video

Watch here.

How it works

The workflow of application is describe by the following architecture diagram.

architecture diagram

At first, the socket connection is established through client. When the user get connected to the socket, users write the code in Editor. And the code written in editor get saved in redis as a Redis JSON .

How the data is stored:

The collab's data is stored in JSON format based upon RediJSON. The overall mapping of data is configured by Redis-Om Node js package.

At first connection need to be established in redis cloud by:

import { Client } from "redis-om";
const url = process.
…
Enter fullscreen mode Exit fullscreen mode

Additional Resources / Info

Website : Collab

  • Architecture diagram of collab :

Image description

Some screenshots of application :

  • Homepage

Image description

  • Join to room page

Image description

  • Editor page

Image description

  • Profile Page

Image description

Features included :

  1. Can invite any other user for collaboration.
  2. Auto sync code in first load.
  3. Broadcast notice to every clients connected to room if any user (joined, disconnected, left) the room.
  4. Supports unlimited users to join the room.

Top comments (4)

Collapse
 
lohanidamodar profile image
Damodar Lohani

Nice project!

Collapse
 
rajeshkhadka profile image
Rajesh khadka

Thanks bother !!

Collapse
 
sarojregmi200 profile image
Saroj regmi

Great platform i am going to use it for the interviews and other tasks thank you sir.

Collapse
 
rajeshkhadka profile image
Rajesh khadka

sure