Improve local development setup instructions in CONTRIBUTING.md
Problem
The current CONTRIBUTING.md file lacks clear, step-by-step instructions for setting up Checkmate locally for development. The "Set up Checkmate locally?" section only provides:
npm install
npm run dev
This is insufficient for new contributors because:
- No mention of required prerequisites (Docker, Node.js, etc.)
- No instructions for setting up MongoDB and Redis containers
- Missing environment variable configuration details
- No clear separation between frontend and backend setup
- No troubleshooting guidance for common issues
Current State
The existing setup section is too brief and assumes contributors already know the architecture and setup process. This creates a barrier for new contributors and leads to setup-related questions on Discord.
Proposed Solution
Expand the "Set up Checkmate locally?" section to include:
-
Prerequisites section listing required tools:
- Node.js (with npm)
- Docker
- Git
-
Step-by-step setup instructions with 5 clear sections:
- Step 1: Clone the repository (with commands)
- Step 2: Set up Docker containers for MongoDB and Redis (with detailed commands)
- Step 3: Backend/Server setup including:
- Navigation to correct directory
- Installing dependencies
- Creating
.envfile with complete example - Explanation of each environment variable
- Command to start the server
- Step 4: Frontend/Client setup including:
- Navigation to correct directory
- Installing dependencies
- Creating
.envfile with complete example - Explanation of each environment variable
- Command to start the client
- Step 5: Access instructions with URLs for frontend, backend, and API docs
-
Docker container management commands:
- Stop containers
- Start containers
- Remove containers
- View logs
-
Troubleshooting section covering:
- Port conflicts
- MongoDB/Redis connection issues
- Module not found errors
- Where to get help
Benefits
- Reduces friction for new contributors
- Decreases setup-related questions on Discord
- Makes the project more accessible to developers of all experience levels
- Improves the overall contributor experience
- Aligns with the project's friendly and welcoming approach
Example Structure
The new section should follow this structure:
### Set up Checkmate locally?
#### Prerequisites
- List of required tools
#### Step 1: Clone the Repository
- Git clone command
- Navigate to directory
#### Step 2: Set Up Docker Containers (MongoDB & Redis)
- Navigate to docker dev directory
- Build images command
- Run Redis container command
- Run MongoDB container command
- Navigate back to root
#### Step 3: Set Up the Backend (Server)
- Navigate to server directory
- Install dependencies
- Create .env file with complete example
- Environment variables explanation table
- Start server command
- Expected output
#### Step 4: Set Up the Frontend (Client)
- Navigate to client directory
- Install dependencies
- Create .env file with complete example
- Environment variables explanation
- Start client command
- Expected output
#### Step 5: Access the Application
- Frontend URL
- Backend URL
- API Documentation URL
#### Managing Docker Containers
- Stop, start, remove commands
#### Troubleshooting
- Common issues and solutions
- Links to Discord and documentation
Additional Notes
- The instructions should be tested to ensure they work on Linux, macOS, and Windows (with WSL)
- All commands should be copy-paste ready
- Environment variable examples should use placeholder values (not production secrets)
- Links to full documentation should be provided for advanced configuration
References
- Current CONTRIBUTING.md: https://github.com/bluewave-labs/Checkmate/blob/develop/CONTRIBUTING.md
- Full documentation: https://docs.checkmate.so/checkmate-2.1/users-guide/quickstart
Acceptance Criteria
- [ ] Prerequisites section added with required tools
- [ ] All 5 setup steps documented with complete commands
- [ ] Environment variable examples provided for both client and server
- [ ] Each environment variable has a clear explanation
- [ ] Docker container management commands included
- [ ] Troubleshooting section added with common issues
- [ ] Instructions tested on at least 2 different operating systems
- [ ] All commands are copy-paste ready
- [ ] Links to Discord and full documentation included
Assignee
help wanted
Related Issues/PRs
None
Additional Context
This improvement aligns with Checkmate's goal of being a friendly, learning-focused open-source project. Clear setup instructions are crucial for attracting and retaining new contributors, especially those who are early in their open-source journey.
Suggested Labels: documentation, good first issue, help wanted
@VivekKavala I have updated the documentation and created a pull request please check it out