A modern web application for motorcycle enthusiasts to discover, share, and explore scenic routes. Built with React, TypeScript, and Supabase.
- 🗺️ Interactive route mapping with OpenStreetMap integration
- 📍 Create routes by clicking on the map or entering addresses
- 🏷️ Tag routes with categories (scenic, curves, mountain, etc.)
- 📸 Add photos to document route highlights
- 👍 Rate and comment on routes
- 🌓 Dark/Light theme support
- 📱 Responsive design for all devices
- 🔍 Advanced route search and filtering
- 📏 Support for both kilometers and miles
- 🧭 Direct navigation integration with Google Maps
-
Frontend:
- React 18
- TypeScript
- Tailwind CSS
- React Router v6
- Leaflet & Leaflet Routing Machine
- Lucide React Icons
-
Backend:
- Supabase (PostgreSQL + PostGIS)
- Row Level Security (RLS)
- Real-time subscriptions
- Secure authentication
-
Clone the repository:
git clone https://github.com/yourusername/motorcycle-route-explorer.git cd motorcycle-route-explorer
-
Install dependencies:
npm install
-
Create a
.env
file based on.env.example
:cp .env.example .env
-
Add your Supabase credentials to
.env
:VITE_SUPABASE_URL=your-supabase-url VITE_SUPABASE_ANON_KEY=your-supabase-anon-key
-
Start the development server:
npm run dev
The application uses the following main tables:
users
- User profiles and preferencesroutes
- Route details with PostGIS geometryroute_tags
- Tags associated with routesroute_photos
- Photos attached to routesroute_ratings
- User ratings for routesroute_comments
- User comments on routes
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Commit your changes:
git commit -m 'Add amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenStreetMap for map data
- Leaflet for map visualization
- Supabase for backend infrastructure