What's My LA?
A simple web app that helps users discover their Los Angeles in geographic context. Find a neighborhood, region, police division, council district and demographics for any address in LA County.
Live at: whatsmyla.com
Features
- Address Search: Find any LA address with autocomplete
- Comprehensive Geography: See all geographic layers for your location
- Neighborhood and region
- Police division and fire station
- City council district and school district
- Demographics: Population, density, and racial/ethnic breakdown from 2020 Census
- Shareable Cards: Generate beautiful cards to share on social media
- Mobile-First: Works perfectly on all devices
Tech Stack
- Framework: SvelteKit
- Styling: Tailwind CSS
- Geocoding: Mapbox Geocoding API
- Data API: LA Geography API
- Deployment: Vercel
Development
Prerequisites
- Node.js 18+
- Mapbox API token
Setup
- Clone the repository:
git clone https://github.com/stiles/whats-my-la.git
cd whats-my-la
- Install dependencies:
npm install
- Create a
.env file:
cp .env.example .env
- Add your Mapbox token to
.env:
PUBLIC_MAPBOX_ACCESS_TOKEN=your_mapbox_token_here
Run Development Server
npm run dev
Open http://localhost:5173 in your browser.
Build for Production
npm run build
Preview Production Build
npm run preview
Deployment
Deploy to Vercel
- Install Vercel CLI:
npm install -g vercel
- Deploy:
vercel --prod
Set environment variables in Vercel dashboard:
PUBLIC_MAPBOX_ACCESS_TOKEN
Configure custom domain (whatsmyla.com) in Vercel project settings
Data Sources
License
MIT