Giter VIP home page Giter VIP logo

live-collaborative-code-editing's Introduction

Live Collaborative Code Editing

A web application which uses sockets to enable real-time code sharing, chatting and canvas sketching all at once. Live hosted website: https://collab-code-edit.fly.dev/ (deployed using fly.io)

Screenshot

Setting up Locally (Docker: RECOMMENDED)

  1. Download Docker and start Docker engine
  2. Register for HackerEarth API v4 (free tier) and copy CLIENT_SECRET, paste it in Dockerfile
  3. In project directory with Dockerfile, run docker build -t collabcode .
  4. Run the docker image using docker run -p 8000:8000 collabcode
  5. Access application on localhost:8000

Setting up Locally (without Docker)

  1. Install Python 3.7
  2. Register for HackerEarth API v4 and copy CLIENT_SECRET
  3. Run pip install -r requirements.txt
  4. Run python3 manage.py migrate to set up your local database tables
  5. Run CLIENT_SECRET=<VALUE COPIED EARLIER> python3 manage.py runserver
  6. Access application on localhost:8000

Video Demo

https://youtu.be/Tez2jAOlcM8

TODO

  • Password protection for chat and live code editing
  • Canvas screen (to draw) which is shared
  • UI improvements (chatroom)
  • FIX: New users can't access chat
  • Synchronization fixes (check every few seconds maybe)
  • Ability to run code
  • Zombie rooms removal (in case server crashes and rooms are still occupied)
  • Resize code window and chat window partition
  • FIX: Different canvas sizes cause problems
  • Change code to be run in sandbox environment only (or use third party API)
  • Replace SQLite as database

live-collaborative-code-editing's People

Contributors

shubhamdhingra38 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.