Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

AI Chatbot

conversational AI website developed using Node.js, Express, MongoDB, and React (Vite), integrated with Ollama and a fine-tuned model.

🎬 Demo Video

Watch on YouTube

demo images

image image Screenshot 2025-07-21 114544 Screenshot 2025-07-21 113646 Screenshot 2025-07-21 113545

Features

  • JWT-based authentication
  • Add your own AI models
  • Search previous chat sessions
  • Chat with the AI chatbot
  • Chat with your custom models

🚀 Tech Stack

Backend

  • Node.js
  • Express.js
  • MongoDB (Mongoose)
  • JSON Web Tokens (JWT)

Frontend

  • React (with Vite)
  • Axios
  • Tailwind CSS

Installation

1. Clone the repository

git clone https://github.com/VIGGU-7/ai-chatbot.git
cd ai-chatbot

2. Install dependencies

Backend:

cd backend
npm install

Frontend:

cd ../frontend
npm install

⚙️ Environment Variables

🔐 Backend .env

Create a backend/.env file and add:

PORT=8080
MONGO_URI="mongodb://localhost:27017/your_db_name
JWT_SECRET="your_jwt_secret"
NODE_ENV="devolopment"
model="your_model_name api link"
modelname="your_model_name"

4. Start the Application

Backend:

npm run dev

Frontend:

npm start

The frontend runs on http://localhost:5173
The backend runs on http://localhost:8080

Usage

  • Register a new account or log in.
  • start chating with your model !.

Project Structure

blog-application/
├── backend/ # Express backend
├── frontend/ # React frontend
├── README.md # Project README
└── .gitignore # Git ignored files

Customization

  • To enable/disable real-time features, adjust socket logic in the context files.
  • Update styles in frontend/src as needed.

About

An AI chatting website built with the MERN stack, using Ollama and a fine-tuned model.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages