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:
This repository contains multiple packages/modules that make up our project. Each package/module is contained in its own directory within this repository.
For the Social Login feature, you need to obtain a GitHub OAuth key before running the project. Please refer to this document for guidance.
After completing this step, you should have the GITHUB_CLIENT_ID
and GITHUB_CLIENT_SECRET
values.
We offer two options. Choose the one that best suits your needs:
Update your GITHUB_CLIENT_ID
and GITHUB_CLIENT_SECRET
to ./backend/docker/docker-compose-full.yml
.
vi ./backend/docker/docker-compose-full.yml
# In the file, update the following values:
# GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET
GITHUB_CLIENT_ID: "your_github_client_id_here"
GITHUB_CLIENT_SECRET: "your_github_client_secret_here"
Run ./backend/docker/docker-compose-full.yml
.
docker-compose -f ./backend/docker/docker-compose-full.yml up -d
Install dependencies from the root.
pnpm install
Run the Frontend application.
pnpm frontend dev
Visit http://localhost:5173 to enjoy your CodePair.
Update your GITHUB_CLIENT_ID
and GITHUB_CLIENT_SECRET
to ./backend/.env.development
.
vi ./backend/.env.development
# In the file, update the following values:
# GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET
GITHUB_CLIENT_ID=your_github_client_id_here
GITHUB_CLIENT_SECRET=your_github_client_secret_here
Run ./backend/docker/docker-compose.yml
.
docker-compose -f ./backend/docker/docker-compose.yml up -d
Install dependencies from the root.
pnpm install
Run the Backend application and the Frontend application:
pnpm backend start:dev
pnpm frontend 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: