Build your own AI real-time collaborative markdown editor in just 5 minutes.
CodePair is an open-source real-time collaborative markdown editor with AI intelligence, built using React, NestJS, and LangChain.
CodePair provides the following features:
- Workspace: A space where users can invite others and collaboratively edit documents
- Sharing Document: Share documents with external parties by setting permissions and expiration time
- Yorkie Intelligence: AI intelligence available within the collaborative editing editor
This repository contains multiple packages/modules that make up our project. Each package/module is contained in its own directory within this repository.
- Frontend: Contains the frontend code of our application. Please refer to frontend/README.md for detailed information on setting up and running the frontend.
- Backend: Contains the backend code of our application. Please refer to backend/README.md for detailed information on setting up and running the backend.
Before running the Frontend and Backend applications, you need to fill in the required API Keys.
Follow these steps:
Frontend Environment Configuration
-
Navigate to the
frontend
directory.cd frontend
-
Copy the
.env.example
file to create a.env.development
file.cp .env.example .env.development
-
Edit the
.env.development
file and fill in the necessary environment variable values. Refer to the comments for the meaning and examples of each value.
Backend Environment Configuration
-
Navigate to the
frontend
directory.cd backend
-
Copy the
.env.example
file to create a.env.development
file.cp .env.example .env.development
-
Edit the
.env.development
file and fill in the necessary environment variable values. Refer to the comments for the meaning and examples of each value.
-
Run the Dockerfile for MongoDB, the database used by CodePair:
docker-compose up -f ./backend/docker/mongodb_replica/docker-compose.yml -d
-
Run the Backend application:
cd backend npm install npm run start:dev
-
Run the Frontend application:
cd frontend npm install npm run dev
-
Visit http://localhost:5173 to enjoy your CodePair.
See CONTRIBUTING for details on submitting patches and the contribution workflow.
Thanks goes to these incredible people: