Skip to content

RayyanStudiosTM/Bharat-Explorer-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‡ฎ๐Ÿ‡ณ Bharat Explorer AI

Discover Bharat, Intelligently โ€” An AI-powered tourism ecosystem for exploring India

Bharat Explorer AI Next.js Firebase License


๐ŸŽฏ Project Overview

Bharat Explorer AI is not just a travel app โ€” it's a unified AI-native tourism ecosystem that revolutionizes how people discover, plan, and experience India.

Key Features

  • ๐Ÿ” AI Destination Discovery โ€” Personalized recommendations based on your interests
  • ๐Ÿ“… Smart Itinerary Generator โ€” AI-crafted daily schedules with detailed activities
  • ๐Ÿ—บ๏ธ Interactive Map Explorer โ€” Google Maps integration with attractions and services
  • ๐Ÿ’ฌ AI Chat Assistant โ€” Conversational agent with persistent memory (Firestore)
  • ๐Ÿ—ฃ๏ธ Real-Time Translator โ€” Speech-to-speech translation for seamless communication

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • Firebase account
  • Google Cloud account (for Maps & Gemini APIs)

Installation

# Clone repository
git clone https://github.com/yourusername/bharat-explorer-ai.git
cd bharat-explorer-ai

# Install dependencies
npm install

# Set up environment variables
cp .env.local.example .env.local
# Edit .env.local with your API keys

# Run development server
npm run dev

Visit http://localhost:3000 to see the app.


๐Ÿ”ง Tech Stack

Category Technology
Frontend Next.js 15 (App Router), TypeScript, Tailwind CSS, ShadCN/UI
AI Google Genkit, Gemini 2.0 Flash, Gemini 1.5 Flash
Backend Firebase (Auth, Firestore, Hosting)
Maps Google Maps JavaScript API, Places API
Styling Tailwind CSS, Lucide React icons

๐Ÿ“ Project Structure

bharat-explorer-ai/
โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ explore/          # AI destination discovery
โ”‚   โ”œโ”€โ”€ plan/             # Smart itinerary generator
โ”‚   โ”œโ”€โ”€ map/              # Interactive map (coming soon)
โ”‚   โ”œโ”€โ”€ chat/             # AI chat assistant (coming soon)
โ”‚   โ”œโ”€โ”€ translate/        # Speech translator (coming soon)
โ”‚   โ””โ”€โ”€ api/
โ”‚       โ”œโ”€โ”€ destinations/
โ”‚       โ””โ”€โ”€ itinerary/
โ”œโ”€โ”€ components/
โ”‚   โ”œโ”€โ”€ ui/               # ShadCN components
โ”‚   โ”œโ”€โ”€ features/         # Feature-specific components
โ”‚   โ””โ”€โ”€ shared/           # Reusable components
โ”œโ”€โ”€ lib/
โ”‚   โ”œโ”€โ”€ firebase/         # Firebase configuration
โ”‚   โ”œโ”€โ”€ genkit/           # AI flows and configuration
โ”‚   โ””โ”€โ”€ utils/            # Helper functions
โ”œโ”€โ”€ public/
โ”‚   โ””โ”€โ”€ data/
โ”‚       โ””โ”€โ”€ destinations.json  # 10+ curated destinations
โ””โ”€โ”€ .env.local            # Environment variables

๐Ÿ”‘ Environment Setup

Create .env.local with these variables:

# Firebase
NEXT_PUBLIC_FIREBASE_API_KEY=your_key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_domain
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_project_id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_bucket
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
NEXT_PUBLIC_FIREBASE_APP_ID=your_app_id

# Google Maps
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=your_maps_key

# Gemini AI
GOOGLE_GENAI_API_KEY=your_gemini_key

Getting API Keys

  1. Firebase: Firebase Console โ†’ Create project โ†’ Web app
  2. Google Maps: Cloud Console โ†’ APIs & Services โ†’ Enable Maps JavaScript API & Places API
  3. Gemini: Google AI Studio โ†’ Create API key

โœจ Features

1. AI Destination Discovery (/explore)

  • Users describe interests (e.g., "historic forts, beaches")
  • AI recommends 5 personalized destinations
  • Shows highlights, best time to visit, and reasons

2. Smart Itinerary Generator (/plan)

  • Input destinations and trip duration
  • AI generates creative trip title and daily schedule
  • Detailed time-based activities with descriptions

3. Interactive Map (Coming Soon - /map)

  • Google Maps integration
  • Markers for destinations, hotels, restaurants
  • AI-generated info panels on click

4. AI Chat Assistant (Coming Soon - /chat)

  • Conversational interface
  • Persistent chat history in Firestore
  • Context-aware responses about 160+ destinations

5. Real-Time Translator (Coming Soon - /translate)

  • Speech-to-text transcription
  • Language translation (English โ†” Hindi/Marathi/Tamil)
  • Text-to-speech output

๐Ÿ—บ๏ธ Roadmap

Phase 1: Core (โœ… Complete)

  • Landing page
  • AI destination discovery
  • Smart itinerary generator
  • Firebase integration
  • Anonymous authentication

Phase 2: Advanced Features (๐Ÿ”„ In Progress)

  • Interactive Google Maps
  • AI chat with Firestore memory
  • Speech translation module

Phase 3: Optimization (โณ Planned)

  • Performance optimization
  • SEO improvements
  • PWA capabilities
  • Analytics integration

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

Contribution Areas

  • Frontend: Build UI components with ShadCN/Tailwind
  • Backend: Optimize Firestore queries, secure APIs
  • AI: Enhance Genkit flows, tune prompts
  • Design: Create responsive, culturally-aware interfaces
  • Content: Curate destination data and cultural insights

How to Contribute

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit changes (git commit -m 'Add some AmazingFeature')
  4. Push to branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“œ Firebase Setup

Firestore Security Rules

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /users/{userId} {
      allow read, write: if request.auth != null && request.auth.uid == userId;
      
      match /chats/{chatId} {
        allow read, write: if request.auth.uid == userId;
      }
      
      match /itineraries/{itineraryId} {
        allow read, write: if request.auth.uid == userId;
      }
    }
    
    match /destinations/{destinationId} {
      allow read: if true;
      allow write: if false;
    }
  }
}

Deploy rules:

firebase deploy --only firestore:rules

๐Ÿ› Troubleshooting

Common Issues

Issue: Firebase not connecting

firebase init
firebase deploy --only firestore:rules

Issue: Genkit API errors

  • Verify GOOGLE_GENAI_API_KEY is set
  • Check API quota in Google AI Studio

Issue: Maps not loading

  • Enable Maps JavaScript API in Cloud Console
  • Verify API key in .env.local

๐Ÿ“Š Performance

  • Lighthouse Score: 95+ (Target)
  • First Contentful Paint: < 1.5s
  • Time to Interactive: < 3.5s
  • API Response Time: < 2s (Genkit flows)

๐Ÿ“„ License

This project is licensed under the MIT License โ€” see LICENSE file for details.


๐ŸŒŸ Acknowledgments

  • Google Gemini for powerful AI capabilities
  • Firebase for seamless backend infrastructure
  • Next.js team for the amazing framework
  • ShadCN for beautiful UI components
  • All contributors who help celebrate India's diversity

๐Ÿ“ž Contact & Support


๐ŸŽ‰ Show Your Support

If you find this project helpful, please consider:

  • โญ Starring the repository
  • ๐Ÿด Forking and contributing
  • ๐Ÿ“ข Sharing with others

Built with โค๏ธ for celebrating India's incredible diversity

Discover Bharat, Intelligently ๐Ÿ‡ฎ๐Ÿ‡ณ

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published