Transform your coding experience with real-time collaboration! Write, share, and execute Python/C++/Java code together in a powerful, intuitive environment.
- Real-time collaboration with live editing, cursor tracking, and room-based sessions
- Powerful editor with syntax completion, auto-indentation, and in-browser Python execution
- ๐ฎ AI-Powered Code Completion for intelligent suggestions based on your code context
- ๐ง Smart Auto-Indentation to keep your code beautifully structured
- ๐ Bracket Auto-Completion to eliminate syntax errors while typing
- Secure authentication, private rooms, and sandboxed code execution
- Built-in chat for team discussions
- Python 3.9+
- Docker
- Docker Compose git clone https://github.com/ShauryaDusht/CodeTogether.git
cd CodeTogether - Create a Virtual Environment:
python3 -m venv venv For Linux:
source venv/bin/activate For Windows:
.
env\Scripts ctivate - Install Requirements:
pip install -r requirements.txt Create a .env file in the root directory with the following content:
SECRET_KEY=your-secret-key
DEBUG=True
ALLOWED_HOSTS=127.0.0.1,localhost
HUGGINGFACE_API_KEY=you-secret-keypython manage.py migrate python manage.py runserver Open your browser and access the app at http://127.0.0.1:8000.
Ensure the .env file is present with the following content:
SECRET_KEY=your-secret-key
DEBUG=True
ALLOWED_HOSTS=127.0.0.1,localhost
HUGGINGFACE_API_KEY=you-secret-key- Build and Run the Application:
docker-compose up --build - Stop the Application:
docker-compose down Open your browser and access the app at http://127.0.0.1:8000.
- Django & Django Channels for robust server-side operations
- WebSocket implementation for real-time features
- AI Assistant for intelligent code recommendations
- Modern Bootstrap UI for responsive design
- Advanced code editor integration
- AI-enhanced smart editing (autocomplete, indenting, bracket handling)
- SQLite (default) for easy setup
- Scalable to PostgreSQL for production
- Docker Compose for container orchestration
- Environment-based configuration
collaborative_code_editor/ # Root project directory
โโโ collaborative_code_editor/ # Project configuration
โ โโโ __init__.py
โ โโโ asgi.py # ASGI configuration (needed for WebSockets)
โ โโโ settings.py # Project settings
โ โโโ urls.py # Main URL configuration
โ โโโ wsgi.py # WSGI configuration
โโโ code_editor/ # Main app
โ โโโ migrations/
โ โ โโโ __init__.py
โ โโโ templates/ # HTML templates
โ โ โโโ code_editor/
โ โ โ โโโ home.html
โ โ โ โโโ join_room.html
โ โ โ โโโ room.html
โ โ โโโ authentication/
โ โ โโโ login.html
โ โ โโโ register.html
โ โโโ admin.py # Admin interface configuration
โ โโโ apps.py # App configuration
โ โโโ consumers.py # WebSocket consumers
โ โโโ models.py # Database models
โ โโโ routing.py # WebSocket URL routing
โ โโโ urls.py # HTTP URL routing
โ โโโ views.py # HTTP views
โโโ static/ # Static files
โ โโโ code_editor/
โ โโโ css/
โ โ โโโ auth.css # Authentication styles
โ โ โโโ join_room.css # Join room page styles
โ โ โโโ style.css # Global styles
โ โโโ js/
โ โโโ script.js # Frontend JavaScript
โโโ .gitignore # Git ignore file
โโโ docker-compose.yml # Docker Compose configuration
โโโ Dockerfile # Docker configuration
โโโ LICENSE # Project license
โโโ manage.py # Django management script
โโโ README.md # Project documentation
โโโ .env # Environment variables file (to be created)
โโโ requirements.txt # Project dependenciesI welcome contributions! If you'd like to contribute, feel free to fork the repository, make changes, and create a pull request.
Please ensure your changes are well-documented.
For any issues or suggestions, open an issue in the repository.
Feel free to reach out to me via email for any queries or collaboration opportunities:
๐ง [email protected]
