# Clone the repository
git clone https://github.com/Veraticus/claude-code-ntfy
cd claude-code-ntfy
# Install required tools (one-time setup)
make install-tools
# Build and test
make test
make build
# Run the binary
./build/claude-code-ntfy -helpEdit code as needed. The project structure:
cmd/- Entry pointpkg/- Core packagesscripts/- Helper scripts
make test # Quick - runs tests with race detectionmake fix # Auto-fix formatting and common issues
make verify # Run all checks (tests, linting, etc.)| Task | Command | Description |
|---|---|---|
| Build | make build |
Build the binary |
| Test | make test |
Run tests with race detection |
| Format | make fmt |
Format code |
| Lint | make lint |
Run linters |
| Coverage | make cover |
Generate coverage report |
| Clean | make clean |
Remove build artifacts |
- Use table-driven tests for multiple scenarios
- Mock external dependencies
- Run tests with race detection (automatic with
make test) - Check coverage with
make cover
The project enforces:
- Standard Go formatting (
gofmt) - Clean, idiomatic Go code
- Comprehensive error handling
- No race conditions
- Security best practices
These are automatically checked by make verify.