# DevKit 🛠️
A comprehensive developer toolkit for project analysis and management.
## ✨ Features
- **Git Analysis**: Analyze repository statistics including commit count and branch information
- **Code Complexity**: Calculate complexity metrics for your codebase
- **Dependency Analysis**: Analyze project dependencies for Rust and Node.js projects
- **Project Templates**: Quickly scaffold new projects with best practices
- **Environment Check**: Verify your development environment setup
## 🚀 Installation Guide for Beginners
### Prerequisites
1. **Install Rust**
```bash
rustc --version cargo --version ```
2. **Install Git**
```bash
git --version ```
### Installing DevKit
1. **Clone the Repository**
```bash
cd C:\Users\YourUsername\Documents git clone https://github.com/AffluentApex/devkit.git
cd devkit
```
2. **Build and Install**
```bash
cargo install --path .
```
3. **Verify Installation**
```bash
devkit --version
```
### Quick Start Guide
1. **Check Your Development Environment**
```bash
devkit check
```
2. **Analyze Your First Project**
```bash
cd C:\Users\YourUsername\YourProject
devkit complexity .
devkit git .
devkit dependencies .
```
### Troubleshooting
1. **If 'devkit' is not recognized**
- Make sure you've added Cargo's bin directory to your PATH
- On Windows, restart your terminal after installation
- Try running `cargo install --path .` again
2. **If you get permission errors**
- On Windows, run Command Prompt as Administrator
- Try running the commands with elevated privileges
3. **Common Issues**
- "Git repository not found": Make sure you're in a git repository
- "Dependencies not found": Check if you're in a project root directory
- "Command not found": Make sure you've followed all installation steps
### Need Help?
If you encounter any issues:
1. Check the error message carefully
2. Make sure all prerequisites are installed
3. Open an issue on GitHub with:
- The command you tried to run
- The exact error message
- Your operating system version
## 📖 Usage
```bash
# Show help and available commands
devkit --help
# Check your development environment
devkit check
# Example output:
# ✓ git (git version 2.45.2)
# ✓ rustc (rustc 1.83.0)
# ✓ python (Python 3.12.3)
# ✗ node not found
# Analyze code complexity
devkit complexity src
# Example output:
# Files analyzed: 5
# Total lines: 504
# Code lines: 427
# Comment lines: 17
# Blank lines: 60
# Analyze a git repository
devkit git .
# Example output:
# Total commits: 42
# Branch count: 3
# Latest commit by: JohnDoe
# Time: 2 hours ago
# Analyze project dependencies
devkit dependencies .
# Example output:
# Total dependencies: 12
# Create a new project
devkit new myproject rust
```
## 🌟 Example Use Cases
1. **Development Environment Setup**
```bash
devkit check
```
2. **Code Analysis**
```bash
devkit complexity src
devkit git .
```
3. **Project Management**
```bash
devkit dependencies .
devkit new myapp rust
```
4. **Analyzing External Repositories**
```bash
git clone https://github.com/username/repository
cd repository
devkit check devkit git . devkit complexity src devkit dependencies .
git clone https://github.com/AffluentApex/super-duper-doodle
cd super-duper-doodle
devkit complexity src devkit git . ```
## 💡 Tips and Tricks
1. **Analyzing External Repositories**
- Always clone repositories before analysis
- Use `devkit git .` to get repository insights
- The complexity analyzer works with any programming language
- Dependencies analysis works best with Rust and Node.js projects
2. **Best Practices**
- Run `devkit check` before starting analysis
- Use specific paths with complexity analysis for better insights
- Keep your development tools updated for accurate environment checks
## 🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## 📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
---
> "Code is poetry in motion, and every developer is a poet." - GlidedApex