Skip to content
pranithakshayreddy-techPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

AI Chatbot

A full-stack AI chatbot built using React, Express.js, and Google's Gemini API.

🚀 Features

  • AI-powered conversations using Gemini
  • React frontend
  • Express.js backend
  • Secure API key management with .env
  • Chat history display
  • REST API communication between frontend and backend
  • Easy to extend with dark mode, markdown, and code highlighting

🛠️ Tech Stack

Frontend

  • React
  • Vite
  • JavaScript
  • CSS

Backend

  • Node.js
  • Express.js
  • CORS
  • Dotenv

AI Model

  • Google Gemini API

📂 Project Structure

aichatbot/
│
├── src/
│   ├── components/
│   │   └── ChatBot.jsx
│   └── App.jsx
│
├── Backend/
│   ├── server.js
│   ├── package.json
│   └── .env (Not included in repository)
│
├── .gitignore
├── package.json
└── README.md

⚙️ Installation

Clone the repository

git clone https://github.com/pranithakshayreddy-tech/aichatbot.git
cd aichatbot

Install frontend dependencies

npm install

Install backend dependencies

cd Backend
npm install

🔑 Environment Variables

Create a .env file inside the Backend folder.

GEMINI_API_KEY=YOUR_GEMINI_API_KEY

Do not commit the .env file to GitHub.


▶️ Running the Project

Start Backend

cd Backend
node server.js

Backend runs on:

http://localhost:5000

Start Frontend

Open another terminal:

npm run dev

Frontend runs on:

http://localhost:5173

🔄 Application Flow

React Frontend
       │
       ▼
Express Backend
       │
       ▼
Google Gemini API
       │
       ▼
Express Backend
       │
       ▼
React Frontend

📸 Future Improvements

  • ChatGPT-like UI
  • Dark mode
  • Typing animation
  • Markdown support
  • Code syntax highlighting
  • Chat history persistence
  • User authentication

👨‍💻 Author

Pranith Akshay Reddy

GitHub: https://github.com/pranithakshayreddy-tech

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages