A professional weather forecast application specifically designed for padel players in the Netherlands. The application provides detailed weather information and playing condition scores to help players make informed decisions about their games.
- 7-day weather forecast with hourly details
- Padel-specific playing condition scores
- Location-based weather data
- Dark mode support
- Admin dashboard for customization
- Responsive design for all devices
- Caching system for optimal performance
- Node.js 18.0.0 or higher
- npm 9.0.0 or higher
- A Visual Crossing Weather API key (get one at Visual Crossing)
- Clone the repository:
git clone [repository-url]
cd dutch-padel-weather
- Install dependencies:
npm install
- Create a
.env
file in the root directory:
VITE_WEATHER_API_KEY=your_visual_crossing_api_key
Start the development server:
npm run dev
The application will be available at http://localhost:5173
- Build the application:
npm run build
- Preview the production build:
npm run preview
The application is built as a static site and can be deployed to any static hosting service:
- Build the project:
npm run build
- Deploy the
dist
directory to your hosting service
Popular hosting options:
- Netlify
- Vercel
- GitHub Pages
- AWS S3 + CloudFront
If deploying to a traditional web server:
- Build the project:
npm run build
-
Copy the contents of the
dist
directory to your web server's public directory -
Configure your web server to handle client-side routing:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
</IfModule>
location / {
try_files $uri $uri/ /index.html;
}
Variable | Description | Required |
---|---|---|
VITE_WEATHER_API_KEY | Visual Crossing Weather API key | Yes |
Default admin credentials:
- Username: admin
- Password: padel123
Important: Change these credentials in production by modifying the src/store/weatherStore.ts
file.
- Chrome (latest 2 versions)
- Firefox (latest 2 versions)
- Safari (latest 2 versions)
- Edge (latest 2 versions)
MIT License - see LICENSE file for details