Contributing to Grafio
Thank you for your interest in contributing!
Development Setup
# Clone the repository
git clone https://github.com/satya-jugran/grafio.git
cd grafio
# Install dependencies
npm install
# Run tests
npm test
# Build
npm run build
Project Structure
src/
├── Graph.ts # Main Graph class
├── Node.ts # Node class
├── Edge.ts # Edge class
├── cypher/ # Cypher query engine
├── storage/ # Storage providers
└── storage/cache/ # Cache implementations
Running Tests
# Run all tests
npm test
# Run with coverage
npm run test:coverage
# Run specific test file
npx jest tests/graph/Graph.node.test.ts
Code Style
- Use TypeScript strict mode
- Follow the existing code style
- Add tests for new features
- Update documentation
Submitting Changes
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests and ensure they pass
- Submit a pull request