{"id":28320041,"url":"https://github.com/k-zehnder/airaccidentdata","last_synced_at":"2026-04-08T11:32:25.402Z","repository":{"id":241421744,"uuid":"760883692","full_name":"k-zehnder/airaccidentdata","owner":"k-zehnder","description":"Explore aviation accidents and insights. https://airaccidentdata.com","archived":false,"fork":false,"pushed_at":"2025-10-02T21:36:44.000Z","size":628,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-02T23:28:04.587Z","etag":null,"topics":["accidents","airplanes","api","aviation","docker","go","make","mysql","nextjs","nginx","react","swagger"],"latest_commit_sha":null,"homepage":"https://airaccidentdata.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/k-zehnder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-20T20:55:44.000Z","updated_at":"2025-10-02T21:28:16.000Z","dependencies_parsed_at":"2024-12-12T05:23:19.690Z","dependency_job_id":"4bba4cb6-4077-4135-9655-93eb309e231a","html_url":"https://github.com/k-zehnder/airaccidentdata","commit_stats":null,"previous_names":["k-zehnder/airaccidentdata"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/k-zehnder/airaccidentdata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-zehnder%2Fairaccidentdata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-zehnder%2Fairaccidentdata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-zehnder%2Fairaccidentdata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-zehnder%2Fairaccidentdata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k-zehnder","download_url":"https://codeload.github.com/k-zehnder/airaccidentdata/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-zehnder%2Fairaccidentdata/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31554091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accidents","airplanes","api","aviation","docker","go","make","mysql","nextjs","nginx","react","swagger"],"created_at":"2025-05-25T10:08:14.478Z","updated_at":"2026-04-08T11:32:25.377Z","avatar_url":"https://github.com/k-zehnder.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# airaccidentdata\n\n[![CI/CD Pipeline](https://github.com/k-zehnder/airaccidentdata/actions/workflows/workflow.yml/badge.svg)](https://github.com/k-zehnder/airaccidentdata/actions/workflows/workflow.yml)\n\n## Quickstart\n\n1. **Clone the Repository:**\n\n   ```bash\n   git clone https://github.com/k-zehnder/airaccidentdata.git\n   cd airaccidentdata\n   ```\n\n2. **Configure Environment:**\n\n   Copy the example environment file:\n\n   ```bash\n   cp .env.example .env\n   ```\n\n   **Edit the `.env` file:**\n\n   Open the `.env` file and set your environment variables:\n\n   ```dotenv\n   # MySQL Configuration\n   MYSQL_HOST=mysql\n   MYSQL_PORT=3306\n   MYSQL_DATABASE=airaccidentdata\n   MYSQL_USER=user\n   MYSQL_PASSWORD=password\n   MYSQL_ROOT_PASSWORD=password\n\n   # Backend Configuration\n   GO_ENV=development\n   SERVER_ADDRESS=0.0.0.0:8080\n\n   # AWS Configuration (production only, for Cloudflare caching with S3 bucket)\n   AWS_REGION=your-region\n   AWS_ACCESS_KEY_ID=your-access-key-id\n   AWS_SECRET_ACCESS_KEY=your-secret-access-key\n   AWS_S3_BUCKET=your-s3-bucket\n\n   # Frontend Configuration\n   NEXT_PUBLIC_ENV=development\n\n   # Google Maps API Configuration\n   GOOGLE_MAPS_API_KEY=your-google-maps-api-key\n   ```\n\n3. **Obtain Google Maps Geocoding API Key:**\n\n   To get the coordinates for accidents, you need a Google Maps Geocoding API key. Follow the instructions [here](https://developers.google.com/maps/documentation/geocoding/get-api-key) to obtain and configure your API key. Then, add it to your `.env` file:\n\n   ```dotenv\n   GOOGLE_MAPS_API_KEY=your-google-maps-api-key\n   ```\n\n4. **Ensure Docker is Installed and Running:**\n\n   Make sure Docker is installed and running on your host machine. You can download Docker Desktop from [here](https://www.docker.com/products/docker-desktop).\n\n   Alternatively, you can install Docker via the command line:\n\n   For **Ubuntu**:\n\n   ```bash\n   sudo apt-get update\n   sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common\n   curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -\n   sudo add-apt-repository \"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable\"\n   sudo apt-get update\n   sudo apt-get install -y docker-ce\n   sudo systemctl status docker\n   ```\n\n   For **Mac**:\n\n   ```bash\n   brew install docker\n   brew install docker-compose\n   ```\n\n   For **Windows**:\n\n   You can download Docker Desktop for Windows from [here](https://www.docker.com/products/docker-desktop) and follow the installation instructions provided on the website.\n\n5. **Launch Development Environment with Docker:**\n\n   This will build and start all necessary services:\n\n   ```bash\n   make dev\n   ```\n\n6. **Populate the Database with Accident Data:**\n\n   ```bash\n   cd backend\n   make data\n   cd ..\n   ```\n\n7. **Populate the Database with Aircraft Images:**\n\n   ```bash\n   cd aircraft_scraper\n   make images\n   cd ..\n   ```\n\n8. **Index Data into Elasticsearch:**\n\n   ```bash\n   cd elastic\n   make index\n   cd ..\n   ```\n\n   Your development environment should now be running.\n\n## Accessing the Application\n\n- **Frontend:** Visit `http://localhost:3000` to view the frontend.\n- **Swagger UI:** Access the API documentation at `http://localhost:8080/swagger/index.html`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-zehnder%2Fairaccidentdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk-zehnder%2Fairaccidentdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-zehnder%2Fairaccidentdata/lists"}