FloodApp
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
index.ts
https://excel--36a9b060344811f0ae109e149126039e.web.val.run
A web application that allows residents of Osun State, Nigeria to receive early flood warnings based on weather forecasts.
- User authentication (signup and login)
- Location management for Osun State areas
- Flood prediction system (2 weeks in advance)
- Email notifications for flood alerts
/backend
- Server-side code and API endpoints/frontend
- User interface and client-side code/shared
- Shared types and utilities
- Backend: Hono (TypeScript)
- Database: SQLite
- Frontend: HTML, JavaScript, Tailwind CSS
- Weather Data: Open-Meteo API
- Notifications: Email
- Users sign up with their email and basic details
- After login, users can add their location within Osun State
- The system checks weather forecasts daily for potential flooding
- If flooding is predicted in the next 2 weeks, users receive email notifications