hausa ai
# Tech & AI Learning App
A modern, bilingual (English/Hausa) educational chatbot application powered by Google's Gemini 2.0 Flash model. This app helps users learn about technology and artificial intelligence through interactive conversations.
## Features
- π€ **AI-Powered Learning**: Integrated with Google Gemini 2.0 Flash for intelligent responses
- π **Bilingual Support**: Full support for English and Hausa languages
- π¬ **Interactive Chat**: Real-time conversations with an AI tutor
- π― **Topic Suggestions**: AI-generated learning topic recommendations
- π **Chat Summarization**: Automatic conversation summaries
- π **Text-to-Speech**: Read responses aloud in both languages
- π± **Responsive Design**: Works seamlessly on desktop and mobile
- π¨ **Modern UI**: Clean, intuitive interface with smooth animations
## Setup Instructions
### Prerequisites
- Node.js (v16 or higher)
- A Google AI Studio API key for Gemini
### Installation
1. **Clone the repository**
```bash
git clone
cd tech-ai-learning-app
```
2. **Install dependencies**
```bash
npm install
```
3. **Configure Environment Variables**
```bash
cp .env.example .env
```
Edit the `.env` file and add your Gemini API key:
```
VITE_GEMINI_API_KEY=your_actual_api_key_here
```
4. **Start the development server**
```bash
npm run dev
```
### Getting a Gemini API Key
1. Visit Google AI Studio
2. Sign in with your Google account
3. Create a new API key
4. Copy the key and add it to your `.env` file
### Deployment
For deployment on Netlify:
1. **Build the project**
```bash
npm run build
```
2. **Deploy to Netlify**
- Connect your repository to Netlify
- Set the build command to `npm run build`
- Set the publish directory to `dist`
- Add your `VITE_GEMINI_API_KEY` as an environment variable in Netlify's dashboard
## Project Structure
```
src/
βββ components/ # Reusable UI components
β βββ ChatInterface.jsx
β βββ LoginForm.jsx
β βββ SignupForm.jsx
β βββ MessageBox.jsx
βββ pages/ β¦