Skip to content

RanafaB18/CodeFusion-React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Collaborative code and text editor for pair programming

An online platform that provides a real-time code and text editor to enhance pair programming and promote cooperation and

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have Node 16.18.1 or higher installed
  • You have a Windows, Linux or macOS machine
  • Web browser to view the application

Setting up the Frontend

To start the frontend, follow these steps: On the terminal, run:

cd CodeFusion-React
cd frontend
npm install
npm run dev
  1. Visit the link in a web browser to view the application. Link will be of the form http://localhost:<PORT>

In the following code snippet of ./src/context/RoomContext.jsx,

const socket = io('http://localhost:<PORT>');

and in ./src/services.js change the baseUrl and rootUrl to reflect your localhost.

Setting up the Backend

To start the frontend, follow these steps: On the terminal, run:

cd CodeFusion-React
cd backend
npm install
npm run dev

In the following code snippet of index.js, change the value of origin to your localhost.

const io = new Server(server, {
    cors: {
        origin: 'http://localhost:<PORT>'
    }
})

About

Collaborative code and text editor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published