conversational AI website developed using Node.js, Express, MongoDB, and React (Vite), integrated with Ollama and a fine-tuned model.
- JWT-based authentication
- Add your own AI models
- Search previous chat sessions
- Chat with the AI chatbot
- Chat with your custom models
- Node.js
- Express.js
- MongoDB (Mongoose)
- JSON Web Tokens (JWT)
- React (with Vite)
- Axios
- Tailwind CSS
git clone https://github.com/VIGGU-7/ai-chatbot.git
cd ai-chatbotBackend:
cd backend
npm installFrontend:
cd ../frontend
npm installCreate 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"Backend:
npm run devFrontend:
npm startThe frontend runs on http://localhost:5173
The backend runs on http://localhost:8080
- Register a new account or log in.
- start chating with your model !.
blog-application/
├── backend/ # Express backend
├── frontend/ # React frontend
├── README.md # Project README
└── .gitignore # Git ignored files
- To enable/disable real-time features, adjust socket logic in the context files.
- Update styles in
frontend/srcas needed.