A modern web application that showcases different technologies and includes an AI-powered Tech Explainer chatbot. The application features both technology exploration and an intelligent chat system that can explain technical concepts in simple terms.
- Interactive technology showcase with detailed information
- AI-powered Tech Explainer chatbot with two modes:
- Tech Explorer: Explains and compares technologies
- Universal Chat: General conversation mode
- Text-to-speech capability for bot responses
- Modern, responsive UI with dark theme
- Real-time AI responses using Ollama
Before running the application, make sure you have the following installed:
- Node.js (v16 or higher)
- npm (Node Package Manager)
- Ollama - Local AI model runner
-
Clone the repository:
git clone <repository-url> cd Tech-React-App
-
Install frontend dependencies:
npm install
-
Install backend dependencies:
cd backend npm install -
Install Ollama:
For macOS:
brew install ollama
For other operating systems, visit: https://ollama.com/download
-
Pull the required AI model:
ollama pull llama3
-
Start the Ollama service:
ollama serve
-
Configure the backend: Create a
.envfile in thebackenddirectory:PORT=3001 OLLAMA_API_URL=http://localhost:11434/api/generate OLLAMA_MODEL=llama3
-
Start the backend server:
cd backend npm run devThe backend server will start on http://localhost:3001
-
Start the frontend development server: In a new terminal:
# From the root directory npm run devThe frontend will be available at http://localhost:5173
-
Access the application:
- Open your browser and navigate to http://localhost:5173
- Sign in to access the main application
- Click the chat icon in the top-right corner to open the Tech Explainer
-
Tech Explorer Mode:
- Ask about any technology: "Explain React"
- Compare technologies: Enter "React" in the first field and "Vue" in the comparison field
- Click the speaker icon to hear the explanation
-
Universal Chat Mode:
- Switch to the Universal Chat tab
- Ask any general questions
- Use the speaker icon for text-to-speech
-
If Ollama is not responding:
- Ensure the Ollama service is running (
ollama serve) - Verify the model is installed (
ollama list) - Check if the API URL in
.envis correct
- Ensure the Ollama service is running (
-
If the backend fails to start:
- Check if port 3001 is available
- Verify all dependencies are installed
- Ensure the
.envfile is properly configured
-
If text-to-speech is not working:
- Check if your browser supports the Web Speech API
- Ensure your system's audio is working
- Try using a different browser if issues persist
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details