A Next.js application that helps you find businesses in any city. Built with React, TypeScript, and Tailwind CSS.
- 🔍 Search for businesses by city and type
- 📊 View results in a clean, organized table
- 📥 Export results to Excel
- 🎨 Modern UI with shadcn/ui components
- ✨ Real-time form validation
- 🌐 Powered by Google Places API
- Node.js 16.8 or later
- A Google Places API key
-
Clone the repository
-
Install dependencies:
npm install
-
Create a
.env.local
file in the root directory with your Google Places API key:GOOGLE_PLACES_API_KEY=your_api_key_here
-
Run the development server:
npm run dev
-
Open http://localhost:3000 with your browser to see the application.
- Enter a city name (e.g., "San Francisco")
- Enter a business type (e.g., "restaurants", "hotels")
- Click "Search" to find businesses
- Use the "Export to Excel" button to download results
- Next.js - React framework
- React - UI library
- TypeScript - Type safety
- Tailwind CSS - Styling
- shadcn/ui - UI components
- react-hook-form - Form handling
- zod - Schema validation
- XLSX - Excel export
The application uses the following Google Places API endpoints:
- Places Text Search API - Find businesses
- Place Details API - Get additional business information
Make sure your API key has access to these services enabled in the Google Cloud Console.