Coder Social home page Coder Social logo

dxvxd5 / online-ide Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 4.0 5.19 MB

An online space where developers can collaborate in real-time on code.

Home Page: https://online-ide-1a3f2.web.app

JavaScript 1.48% CSS 7.66% TypeScript 90.85% Procfile 0.01%
expressjs nodejs react socket-io firestore-database collaborative-editing realtime-collaboration typescript webpack jwt-authentication jwt-token jwt-authorization monaco-editor

online-ide's Introduction


Collaborative online IDE

A space where developers can collaborate in real-time on codeπŸ‘¨πŸΎβ€πŸ’»πŸ‘©πŸΎβ€πŸ’».

Features

Personal space

When users create an account on the application, they get access to a personal space, where they can see all their projects and edit them.

Full-fledged code editor

Users have access to a full-fledged code editor with syntax highlighting and autocompletion (for the languages supported by monaco editor)

Collaborative code editing

  • Several users can collaborate on a file together in real-time.
  • Users can see on their respective editors a cursor showing where their collaborators are in the file.
  • Users can invite other users to collaborate together on a project.

Future improvements

  • Code execution
  • Upload file
  • File download
  • Github integration
  • Better support for programming languages
  • Following feature during collaboration

How to run the app locally

  • Create a new firebase project. Add a Firestore instance to this project.
  • To install all the dependencies, run npm install in the root folder online-ide, the client folder and the server folder.
  • Create a .env file in the server folder. Fill it with the Json file containing your firebase project service accout key. The .env file should be like so:
# Firebase project configuration
FIREBASE_ADMIN_SDK_SERVICE_ACCOUNT= __json containing the service account key__

# Password hashing configuration
HASH_CONFIG_ITERATION=100000
HASH_CONFIG_KEYLEN=128
HASH_CONFIG_DIGEST=sha512
HASH_CONFIG_SALT_LEN=64
  • Use the function genKeyPair in the file online-ide/server/src/utils/jwt.ts to generate the RSA keys used by the server to sign the jwt tokens. It should create a folder named keys containing the files id_rsa_private.pem and id_rsa_pub.pem in the server folder
  • Run the entire application (both client and server) by executing the command npm run dev in the project root directory online-ide.

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.