Skip to content

GiridharRNair/CodeAlong

Repository files navigation

code along

Create a room, share the link, and code together instantly. No sign-up required. Perfect for pair programming, technical interviews, and tutoring sessions. Supports Python, JavaScript, C++, and Java.

https://codealong.live

Architecture

Architecture

The entire application is built with the Next.js framework and deployed on Vercel. Real-time collaboration is handled by Yjs, with y-supabase as the sync provider, syncing document state through Supabase's realtime infrastructure.

Code execution is proxied through a Next.js API route that calls the Runlet code execution API. The application previously used JDoodle for code execution, but it was replaced with Runlet, partly to learn how to build a code execution service myself, and partly to avoid the limitations of JDoodle's API.

Local Development

Prerequisites

Setup

  1. Clone the repository and install dependencies:
git clone https://github.com/GiridharRNair/CodeAlong.git
cd codealong
npm install
  1. Create a .env.local file in the project root with the following:
NEXT_PUBLIC_SUPABASE_URL=https://<your-supabase-project>.supabase.co
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=<your-supabase-publishable-key>
  1. Start the development server:
npm run dev

The application will be available at http://localhost:3000.

License

MIT

About

Web-based collaborative code editor

Resources

Stars

Watchers

Forks

Contributors

Languages