• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
excel

excel

FloodApp

A flood app that notify subscriber ahead of flooding
Public
Like
FloodApp
Home
Code
4
backend
6
frontend
3
shared
2
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
shared
/
README.md
Code
/
shared
/
README.md
Search
5/19/2025
README.md

Shared

This directory contains code that is shared between the frontend and backend.

Files

  • utils.ts - Shared types, interfaces, and utility functions

Types

  • UserInfo - User information (without sensitive data)
  • LocationInfo - Location information
  • AlertInfo - Alert information
  • SignupRequest - Request body for signup
  • LoginRequest - Request body for login
  • AuthResponse - Response for authentication
  • AddLocationRequest - Request body for adding a location

Constants

  • OSUN_STATE_BOUNDS - Geographic boundaries of Osun State, Nigeria

Utility Functions

  • isInOsunState(latitude, longitude) - Check if coordinates are within Osun State
  • formatDate(dateString) - Format a date string for display
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.