Thank you for your interest in contributing to GyaaniCLI! 🎉 Your efforts, whether big or small, help make this project better. By contributing, you agree to follow our guidelines, ensuring a welcoming and collaborative environment for everyone.
- How to Contribute
- Reporting Issues
- Submitting a Pull Request
- Code of Conduct
- Development Setup
- Helpful Links
We welcome all types of contributions, including:
- 🐛 Bug fixes
- ✨ New features
- 📚 Documentation updates
- 🔄 Code refactoring
- ✅ Testing and validation
-
Fork the Repository
Click the "Fork" button on the GyaaniCLI repository to create your own copy. -
Clone Your Fork
Clone the forked repository to your local machine:git clone https://github.com/<your-username>/GyaaniCLI.git
-
Create a Branch
Create a branch for your changes:git checkout -b feature/your-feature-name
-
Make Changes
Implement your changes and commit them with meaningful commit messages. -
Push Your Changes
Push your branch to GitHub:git push origin feature/your-feature-name
-
Submit a Pull Request
Go to the original repository and create a pull request (PR). Provide a clear description of your changes.
If you encounter a problem or have an idea for improvement, let us know!
-
Search Existing Issues
Check if the issue has already been reported in the Issues section. -
Create a New Issue
If it hasn’t been reported, click "New Issue" and include:- Description: Clearly describe the issue or feature request.
- Reproduction Steps: Steps to reproduce the issue (if applicable).
- Expected vs. Actual Behavior: What you expected vs. what happened.
- Logs/Error Messages: Attach relevant logs or screenshots.
When submitting a PR, ensure the following:
- Descriptive Title and Comments: Clearly explain what the PR does and why.
- Follow Code Style: Match the existing coding conventions.
- Test Thoroughly: Verify that your changes work as intended and don’t introduce new issues.
- Avoid Breaking Changes: If unavoidable, document the breaking changes and provide context.
We expect everyone to follow our Code of Conduct. Be respectful, inclusive, and kind in all interactions.
- Node.js and npm installed
- Python installed (for the AI server)
-
Navigate to the AI server directory:
cd ai-server
-
Create a
.env
file and add your OpenAI API key:OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-
Set up a Python virtual environment and install dependencies:
python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate pip install -r requirements.txt
-
Start the AI server:
python app.py
The server will run at http://127.0.0.1:5000.
-
Navigate to the
gyaani
directory:cd gyaani
-
Update
config.js
with the local AI server URL:export const apiURL = 'http://127.0.0.1:5000';
-
Install dependencies:
npm install
-
Test the CLI with:
gyaani <command>
Replace
<command>
with commands.
- GitHub Repository: GyaaniCLI
- Issues: Report Issues
- Discussions: Join Discussions
Thank you for contributing to GyaaniCLI! 🚀 Together, we’re building something amazing. 💡