Code Monkey home page Code Monkey logo

react-node-collab-drawing-app's Introduction

Collaborative Drawing App (reactjs & nodejs)

A real time collaborative drawing app that uses socket.io and socket.io-client with multiple features.

• Features:

  • Rooms system: users can join rooms and each room can take up to 5 users.
  • Leader role: 1 user can be the leader of a room, leader does have permissions like kicking, promoting and allowing others to use drawing brush or eraser.
  • The app does handle disconnecting/leaving, for example if the leader left then someone else will get promoted to leader automatically.
  • Tools box: brush, brush width (eraser width as well), brush color, eraser, clear board for all (only leader can use it), change background color (locally).
  • Real time chat: with time ago feature using timeago.js, system messages whenever someone joins or leaves or gets promoted, smooth auto scrolling and the ability to scroll up to catch up with old unread messages.

Packages and tech i used to make this app:
• Frontend:

  • Reactjs hooks: useState, useEffect, useContext, useCallback.
  • Npm packages: react-icons, socket.io-client, timeago.js.

• Backend:

  • Nodejs: express.
  • Npm packages: socket.io.
  • Npm packages i used for development only: env-cmd, nodemon.

NOTES:
*If 2 or more users were drawing at the exact same time, experience might not be optimal, due to how socket.io handle things.
*Drawing board listens to mouse events only, that means it won't work with other devices like mobile phones.


  • welcome page:
    alt_text alt_text

  • after joining:
    alt_text

  • multiple users joining:
    alt_text

  • promoting:
    alt_text

  • kicking:
    alt_text

  • chat & scrolling up:
    alt_text alt_text

  • drawing:
    alt_text

  • background color:
    alt_text

  • info:
    alt_text

react-node-collab-drawing-app's People

Contributors

hani-alhamad avatar

Stargazers

 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.