Real-time collaborative code editing platform for seamless developer collaboration
Features • Tech Stack • Getting Started • API • Contributing
|
| Frontend | Backend |
|---|---|
|
|
- Node.js 16+
- MongoDB database
- Git
-
Clone the repository
git clone https://github.com/aniketchawardol/codesync.git cd codesync -
Install dependencies
# Install frontend dependencies cd frontend npm install # Install backend dependencies cd ../backend npm install
-
Set up environment variables
# Frontend .env VITE_API_URL=http://localhost:3000 VITE_AUTH0_DOMAIN=your-auth0-domain VITE_AUTH0_CLIENT_ID=your-auth0-client-id # Backend .env MONGO_URI=your-mongodb-connection-string
-
Run development servers
# Start frontend (in frontend directory) npm run dev # Start backend (in backend directory) npm run dev
| Endpoint | Description |
|---|---|
| `POST /api/room` | Create a new room |
| `GET /api/room/:roomId` | Join an existing room |
| `POST /api/user` | Create or update user |
| `GET /api/user/:email` | Get user data |
| `GET /api/room/user/:email` | Get rooms created by user |
| Event | Description |
|---|---|
| `join-room` | Join a collaboration room |
| `update-folder` | Sync folder structure changes |
| `cursor-update` | Track user cursor positions |
| `chat-send` | Send chat messages |
| `userJoined` | Handle new user connections |
Made with ❤️ by the CodeSathi Team
• Aniket Chawardol
• Suyash Patil
• Vishwas Kulkarni
• Suyash Patil
• Vishwas Kulkarni