A web application for visualizing binary trees constructed from CSV data. This project allows users to upload CSV files, define tree structures, and visualize hierarchical relationships.
- Upload and parse CSV files
- Define parent-child relationships in data
- Visualize binary tree structures
- Interactive tree manipulation
- Real-time updates and validation
- Clone the repository:
git clone https://github.com/yourusername/csv-binary-tree-visualizer.git- Install dependencies:
npm install- Create environment file:
cp .env.local.example .env.local- Set your Gemini API key in
.env.local:
GEMINI_API_KEY=your_api_key_hereRun the app in development mode:
npm run devThe application will be available at http://localhost:3000
├── components/ # React components
├── utils/ # Utility functions
├── App.tsx # Main application component
├── index.html # Entry point for the app
├── index.tsx # React entry point
├── metadata.json # Project metadata
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── vite.config.ts # Vite build configuration
- Navigate to
http://localhost:3000 - Use the file upload component to select your CSV file
- Define tree relationships using the configuration form
- View and interact with the generated binary tree visualization
- Fork the repository
- Create a new branch for your feature
- Commit your changes
- Push to the branch
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
Run unit tests with:
npm run testDeployment instructions coming soon...