Thank you for your interest in contributing to CodeSplit! This guide will help you get started with the development environment and contribution process.
-
Clone the repository
git clone https://github.com/yourusername/codesplit.git cd codesplit -
Install dependencies
npm install
-
Environment Configuration
- Copy the example environment file (if available) or create
.env - You need Firebase credentials. See
docs/FIREBASE_AUTH.mdfor setup details.
- Copy the example environment file (if available) or create
-
Start the development server
npm run dev
The app should be running at
http://localhost:5173.
Please refer to docs/PROJECT_STRUCTURE.md and docs/COMPONENTS.md to understand how the codebase is organized and how the main components interact.
- Language: TypeScript (Strict mode enabled)
- Framework: React 18+
- Styling: Tailwind CSS
- Linting: ESLint + Prettier
- Components: Use functional components with hooks. Keep components small and focused.
- Types: Define interfaces for all props and state objects. Avoid
any. - State: Use
useStatefor local state,useContextfor global state (like Auth), anduseLocalStoragefor persisting editor state. - Comments: Comment complex logic, especially in
MainContent.tsxwhere compilation happens.
- Fork the repository and create your branch from
main. - Naming convention:
feature/your-featureorfix/your-fix. - Implement your changes.
- Run types check:
npx tsc --noEmit. - Submit a Pull Request.
- Provide a clear description of your changes and screenshots if UI related.
If you find a bug, please open an issue including:
- Steps to reproduce
- Expected behavior
- Screenshots (if applicable)
- Browser/Device details