{"id":35651389,"url":"https://github.com/parunchxi/dangerless","last_synced_at":"2026-01-20T17:17:09.139Z","repository":{"id":321217772,"uuid":"1067632951","full_name":"parunchxi/Dangerless","owner":"parunchxi","description":"A web application for providing travelers with real-time neighborhood safety ratings and local safety news alerts.","archived":false,"fork":false,"pushed_at":"2025-12-12T13:40:07.000Z","size":656,"stargazers_count":0,"open_issues_count":0,"forks_count":6,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-13T20:01:18.618Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dangerless.vercel.app","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/parunchxi.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-01T06:39:41.000Z","updated_at":"2025-12-12T13:40:11.000Z","dependencies_parsed_at":"2025-12-12T14:03:48.100Z","dependency_job_id":null,"html_url":"https://github.com/parunchxi/Dangerless","commit_stats":null,"previous_names":["parunchxi/dangerless"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/parunchxi/Dangerless","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parunchxi%2FDangerless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parunchxi%2FDangerless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parunchxi%2FDangerless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parunchxi%2FDangerless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parunchxi","download_url":"https://codeload.github.com/parunchxi/Dangerless/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parunchxi%2FDangerless/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: 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":[],"created_at":"2026-01-05T14:56:08.926Z","updated_at":"2026-01-20T17:17:09.107Z","avatar_url":"https://github.com/parunchxi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛡️ Dangerless\n\nAn application for providing travelers with real-time neighborhood safety ratings and local safety news alerts.\n\n## Prerequisites\n\nMake sure you have these installed:\n\n- **Node.js** v20 or higher\n- **npm** v10 or higher (comes with Node.js)\n- **Supabase Account** (free account at [supabase.com](https://supabase.com/))\n- **Git**\n\nVerify installation:\n\n```bash\nnode --version\nnpm --version\n```\n\n## Installation\n\n1. **Clone the repository**\n\n   ```bash\n   git clone https://github.com/parunchxi/Dangerless.git\n   cd Dangerless\n   ```\n\n2. **Install dependencies**\n   ```bash\n   npm install\n   ```\n\n## Configuration\n\n### Environment Variables\n\n1. **Rename `.env.example` to `.env.local`**\n\n   ```bash\n   cp .env.example .env.local\n   ```\n\n2. **Add your Supabase credentials in `.env.local`:**\n\n   ```bash\n   # Supabase Configuration\n   NEXT_PUBLIC_SUPABASE_URL=your-project-url\n   NEXT_PUBLIC_SUPABASE_PUBLISHABLE_OR_ANON_KEY=your-anon-key\n\n   # For Google Sign-In Test Account (Optional)\n   GOOGLE_SIGNIN_EMAIL=your-email\n   GOOGLE_SIGNIN_PASSWORD=your-password\n   ```\n\n   Get Supabase credentials from: Supabase Dashboard → Your Project → Settings → API\n\n### Database Setup\n\n**Important:** Import database files BEFORE running the app.\n\n1. Open **Supabase Dashboard** → Go to **SQL Editor**\n\n2. Copy and run these SQL files **in order**:\n\n   - `database/enum.sql` (creates enums)\n   - `database/schema.sql` (creates tables)\n   - `database/functions.sql` (creates functions)\n   - `database/triggers.sql` (creates triggers)\n   - `database/appSetting.sql` (adds initial data)\n\n3. Enable required extensions:\n   ```sql\n   CREATE EXTENSION IF NOT EXISTS postgis;\n   CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";\n   ```\n\n## How to Run\n\n**Start the development server:**\n\n```bash\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) in your browser.\n\n## Test Credentials\n\n**Sign in with your Google account:**\n\n1. Click \"Sign in\" on the login page\n2. Use your own Google account credentials\n3. Grant necessary permissions when prompted\n\nAll users start as **Standard Users** with these permissions:\n\n- View safety map and news\n- Submit safety reports\n- View own submissions\n\n## Project Status \u0026 Known Issues\n\n### ✅ Working Features\n\n- Interactive safety map with color-coded danger zones\n- Google OAuth authentication\n- User can submit safety reports (location, severity, category)\n- Search for locations and view safety info\n- Responsive design (desktop and mobile)\n- Light/dark theme switching\n- Map controls (layers, zoom, user location)\n\n### ⚠️ Known Issues\n\n1. **History Feature - Not fully implemented**\n\n   - Original plan included advanced time filters (1M, 6M, 1Y, 5Y)\n   - Could not be completed within sprint timeline due to complexity\n   - **Solution:** Reduced to MVP version, shows recent news only\n\n2. **Data Consistency - Fixed**\n   - Frontend and backend used different field names early in development\n   - Caused mismatched data and rendering errors\n   - **Solution:** Standardized data structure and API response format across both ends\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparunchxi%2Fdangerless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparunchxi%2Fdangerless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparunchxi%2Fdangerless/lists"}