{"id":31803743,"url":"https://github.com/tessapower/trail-conditions-map","last_synced_at":"2026-04-12T13:02:46.379Z","repository":{"id":315111422,"uuid":"1058100567","full_name":"tessapower/trail-conditions-map","owner":"tessapower","description":"Full-stack trail conditions map for Austin MTB trails with real-time weather integration, TrailForks API, and intelligent condition warnings.","archived":false,"fork":false,"pushed_at":"2025-09-18T16:59:15.000Z","size":8974,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-11T01:23:00.637Z","etag":null,"topics":["cheerio","express","leaflet","mountain-biking","nodejs","postgresql","react","redis","trail-conditions","typescript","vite"],"latest_commit_sha":null,"homepage":"","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/tessapower.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-09-16T16:11:13.000Z","updated_at":"2025-09-19T17:25:12.000Z","dependencies_parsed_at":"2025-09-16T20:35:14.604Z","dependency_job_id":null,"html_url":"https://github.com/tessapower/trail-conditions-map","commit_stats":null,"previous_names":["tessapower/trail-conditions-map"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tessapower/trail-conditions-map","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tessapower%2Ftrail-conditions-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tessapower%2Ftrail-conditions-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tessapower%2Ftrail-conditions-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tessapower%2Ftrail-conditions-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tessapower","download_url":"https://codeload.github.com/tessapower/trail-conditions-map/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tessapower%2Ftrail-conditions-map/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31715492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"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":["cheerio","express","leaflet","mountain-biking","nodejs","postgresql","react","redis","trail-conditions","typescript","vite"],"created_at":"2025-10-11T01:22:18.001Z","updated_at":"2026-04-12T13:02:46.340Z","avatar_url":"https://github.com/tessapower.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trail Conditions Map 🚵‍♂️\n\nA full-stack web application that displays an interactive map of mountain biking trails in Austin, combining trail data from TrailForks API with real-time trail conditions from Austin Trail Conditions, enhanced with weather data for intelligent trail warnings.\n\n## 🌟 Features\n\n- **Interactive Trail Map**: Browse mountain biking trails on a detailed map interface\n- **Real-Time Conditions**: See current trail conditions (open/closed/muddy) updated automatically\n- **Weather Integration**: Current rainfall display with trail warnings based on recent weather\n- **Trail Details**: View trail difficulty, length, elevation, and type information\n- **Smart Warnings**: AI-powered verification of trail reports using weather history\n- **Responsive Design**: Optimized for both desktop and mobile use\n- **Efficient Caching**: Smart data updates to minimize API calls and scraping\n\n## 🛠️ Tech Stack\n\n**Frontend:**\n\n- React 18 with TypeScript (Vite)\n- Leaflet.js for interactive maps\n- React-Leaflet for seamless React integration\n- Tailwind CSS for styling\n\n**Backend:**\n\n- Node.js with Express and TypeScript\n- Web scraping with Cheerio for fast HTML parsing\n- Redis for caching trail and weather data\n- PostgreSQL for data persistence\n\n**APIs \u0026 Data Sources:**\n\n- TrailForks API for comprehensive trail information\n- Austin Trail Conditions (web scraped) for current conditions\n- National Weather Service API for weather data and historical rainfall\n- OpenStreetMap tiles for trail-friendly mapping\n\n## 🌐 Live Application\n\n### TODO: Update with actual deployed URL\n\nVisit the live application: **[https://trail-conditions-map.railway.app](https://your-deployed-url-here)**\n\n## 💻 Local Development\n\nWant to contribute or run locally? Here's how to set up your dev environment:\n\n### Prerequisites\n\n- Node.js 18+\n- PostgreSQL\n- Redis (Docker recommended: `docker run -d -p 6379:6379 redis`)\n- TrailForks API key\n\n### Setup\n\n1. **Clone the repository**\n\n   ```bash\n   git clone https://github.com/yourusername/trail-conditions-map.git\n   cd trail-conditions-map\n   ```\n\n2. **Install dependencies**\n\n   ```bash\n   # Backend\n   cd backend \u0026\u0026 npm install\n\n   # Frontend\n   cd ../frontend \u0026\u0026 npm install\n   ```\n\n3. **Environment Setup**\n   Create a `.env` file in the `backend` directory:\n\n   ```env\n   DATABASE_URL=postgresql://username:password@localhost:5432/trail_conditions\n   REDIS_URL=redis://localhost:6379\n   TRAILFORKS_API_KEY=your_api_key_here\n   NWS_USER_AGENT=TrailConditionsApp/1.0 (your.email@example.com)\n   PORT=3001\n   NODE_ENV=development\n   ```\n\n4. **Start development servers**\n\n   ```bash\n   # Backend (from backend directory)\n   npm run dev\n\n   # Frontend (from frontend directory)\n   cd ../frontend \u0026\u0026 npm run dev\n   ```\n\nVisit `http://localhost:5173` for the frontend and `http://localhost:3001` for the API.\n\n## 📁 Project Structure\n\n```\ntrail-conditions-map/\n├── backend/\n│   ├── src/\n│   │   ├── controllers/     # API route handlers\n│   │   ├── services/        # Business logic \u0026 data fetching\n│   │   │   ├── WeatherService.ts      # NWS API integration\n│   │   │   ├── TrailForksService.ts   # TrailForks API\n│   │   │   └── TrailScraper.ts        # Austin conditions scraping\n│   │   ├── models/          # Database models\n│   │   ├── utils/           # Helper functions\n│   │   └── app.ts           # Express application\n│   ├── package.json\n│   └── tsconfig.json\n├── frontend/\n│   ├── src/\n│   │   ├── components/      # React components\n│   │   │   ├── Map/         # Map-related components\n│   │   │   ├── Trail/       # Trail display components\n│   │   │   └── Weather/     # Weather display components\n│   │   ├── hooks/           # Custom React hooks\n│   │   ├── services/        # API calls\n│   │   ├── types/           # TypeScript interfaces\n│   │   └── utils/           # Helper functions\n│   ├── package.json\n│   ├── tsconfig.json\n│   └── vite.config.ts\n└── README.md\n```\n\n## 🔧 API Endpoints\n\n- `GET /api/trails` - Get all trails with current conditions\n- `GET /api/trails/:id` - Get specific trail details\n- `GET /api/conditions` - Get latest trail conditions\n- `GET /api/weather/current/:lat/:lon` - Get current weather for location\n- `GET /api/weather/history/:lat/:lon` - Get 24-hour weather history\n- `POST /api/conditions/refresh` - Force refresh of trail conditions\n\n## 🌤️ Weather Integration\n\n- **Real-time precipitation data** from National Weather Service\n- **24-hour rainfall history** for trail condition verification\n- **Smart warnings** when trail conditions may have changed due to weather\n- **Multiple weather stations** across Austin area for granular data\n\n## 🤖 Future Features\n\n- AI chatbot for trail condition reports\n- User authentication and favorite trails\n- Community reporting system\n- Mobile app version\n- Expansion to other Texas cities\n\n## 🤝 Contributing\n\nContributions are welcome! This project serves the Austin mountain biking community.\n\n**How to contribute:**\n\n1. **Fork the repository**\n2. **Create a feature branch**\n\n   ```bash\n   git checkout -b feature/amazing-feature\n   ```\n\n3. **Make your changes**\n   - Add new trail areas\n   - Improve weather accuracy\n   - Enhance mobile experience\n   - Fix bugs or add features\n\n4. **Test your changes**\n\n   ```bash\n   npm run test        # Run backend tests\n   npm run lint        # Check code style\n   ```\n\n5. **Commit and push**\n\n   ```bash\n   git commit -m 'Add amazing feature'\n   git push origin feature/amazing-feature\n   ```\n\n6. **Open a Pull Request**\n\n**Ideas for contributions:**\n\n- Additional Texas cities (San Antonio, Dallas trails)\n- User authentication and favorite trails\n- Mobile app version\n- Trail photo integration\n- Community reporting features\n\n**Found a bug?** Please open an issue with details about the trail, browser, and steps to reproduce.\n\n**Have trail data corrections?** We'd love to hear from local riders!\n\n## 📝 License\n\nMIT License - feel free to use this code for your own projects!\n\n## 🙏 Acknowledgments\n\n- [TrailForks](https://www.trailforks.com/) for comprehensive trail data\n- [Austin Trail Conditions](https://austintrailconditions.com/) for community-driven updates\n- [National Weather Service](https://www.weather.gov/) for reliable weather data\n- The Austin mountain biking community for inspiration!\n\n---\n\n**Built with ❤️ for the Austin mountain biking community**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftessapower%2Ftrail-conditions-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftessapower%2Ftrail-conditions-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftessapower%2Ftrail-conditions-map/lists"}