Skip to content

Latest commit

ย 

History

History
154 lines (108 loc) ยท 4.63 KB

File metadata and controls

154 lines (108 loc) ยท 4.63 KB

๐ŸŒ Globe Scout โ€“ Interactive Geography Chat App for Students

Globe Scout is an AI-powered educational web application designed to make geography learning engaging and interactive for students. It features a conversational chatbot interface that allows students to explore countries, cities, capitals, population, and nearby locations โ€” all through natural language queries.


โœจ Features

  • ๐Ÿ’ฌ Chat Interface โ€“ Ask questions like โ€œTell me about Franceโ€ or โ€œWhat are the nearby cities to Tokyo?โ€
  • ๐ŸŒ Country Explorer โ€“ Get key facts: population, capital, region, highlights, and trivia.
  • ๐Ÿ™๏ธ City Highlights โ€“ Explore interesting facts and key features of global cities.
  • ๐Ÿ“ Nearby City Discovery โ€“ Find and learn about cities near a given location.
  • ๐Ÿ“ฑ Mobile Responsive UI โ€“ Works seamlessly on mobile devices and tablets.
  • ๐Ÿ” Local LLM Integration โ€“ Uses lightweight local language models for private, cost-effective operation (no dependency on cloud APIs).
  • ๐Ÿง’ Teen-Safe โ€“ Designed with appropriate preprompts and filters to maintain content safety for students.

๐Ÿ“š Use Case

Perfect for students aged 10โ€“18 who want to explore the world, prepare for geography assignments, or simply stay curious about global places in a fun, interactive way.



๐Ÿš€ Getting Started

1. Clone the repository

git clone https://github.com/Code4Bharat-2025/team10.git

## Prerequisites

- React.js (18.2.0 or higher)
- Python (v3.8 or higher)
- pip (Python package manager)
- A GEOdb Cities API key (get it from [RapidAPI](https://rapidapi.com/wirefreethought/api/geodb-cities/))
- Ollama

## Backend Setup

1. Navigate to the backend directory:
   ```bash
   cd backend
  1. Create a virtual environment (recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  2. Install the required packages:

    pip install -r requirements.txt
  3. Create a .env file in the backend directory with your API key:

    GEO_API_KEY=your_geodb_api_key_here
    FLASK_ENV=development
    FLASK_APP=app.py
    
  4. Run the Flask development server:

    flask run

    The backend will be available at http://localhost:5000

  5. Install Ollama for your OS, if not already and then run following commands:

    ollama run phi3

Frontend Setup

  1. Navigate to the frontend directory:

    cd frontend
  2. Install the required packages:

    npm install
  3. Start the development server:

    npm start

    The frontend will be available at http://localhost:3000

Project Structure

travel-guide/
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ app.py              # Flask application
โ”‚   โ”œโ”€โ”€ requirements.txt    # Python dependencies
โ”‚   โ””โ”€โ”€ .env               # Environment variables
โ””โ”€โ”€ frontend/
    โ”œโ”€โ”€ public/             # Static files
    โ””โ”€โ”€ src/
        โ”œโ”€โ”€ components/      # Reusable components
        โ”œโ”€โ”€ pages/           # Page components
        โ”œโ”€โ”€ services/        # API services
        โ”œโ”€โ”€ App.js           # Main App component
        โ””โ”€โ”€ App.css          # Global styles

API Endpoints

  • GET /api/countries - Get list of countries
  • GET /api/cities?countryId=:id - Get cities for a country
  • GET /api/city/:id - Get details for a specific city

๐Ÿงฐ Tech Stack

Layer Tech Used
Frontend HTML, CSS, JavaScript, React
Backend Flask
AI/LLM Local SLM (e.g., OLLaMA)
Data Source Static location data / GeoDB
Hosting Local server / lightweight VM
UI Mobile responsive layout

๐Ÿ”ฎ Future Scope

๐Ÿงฉ Gamified Learning โ€“ Add interactive quizzes, leaderboards, and badges to make learning fun.

๐Ÿ”Š Voice Support โ€“ Enable voice-to-text input for accessibility and ease of use.

๐ŸŒ Multilingual Support โ€“ Introduce translations and multilingual responses for broader reach.

โœˆ๏ธ Virtual Tours โ€“ Integrate with Google Earth or Map APIs for immersive 3D exploration.

๐ŸŽ’ Curriculum Integration โ€“ Align content with school geography syllabus and enable teacher-student dashboards.

๐Ÿ“ถ Offline Mode โ€“ Allow access to preloaded data in low-connectivity environments.

๐Ÿ“š Cross-Subject Expansion โ€“ Extend the app to include history, culture, and current events.

Demo

https://drive.google.com/file/d/1w28ii-qeIeBRLlYw8Tkm_nFKRkum4eEx/view