https://github.com/thakiyudheen/chatai-server
To create a chat application with a bot using NestJS, you can set up a WebSocket gateway for real-time communication. Implement a `ChatGateway` to handle incoming messages, process them with a bot logic (e.g., calling an external API), and respond accordingly. Integrate Axios for HTTP requests, and manage state using services for clean architecture
https://github.com/thakiyudheen/chatai-server
axios nest nestjs reactjs socket-io typescript
Last synced: 4 months ago
JSON representation
To create a chat application with a bot using NestJS, you can set up a WebSocket gateway for real-time communication. Implement a `ChatGateway` to handle incoming messages, process them with a bot logic (e.g., calling an external API), and respond accordingly. Integrate Axios for HTTP requests, and manage state using services for clean architecture
- Host: GitHub
- URL: https://github.com/thakiyudheen/chatai-server
- Owner: thakiyudheen
- Created: 2024-09-06T19:41:51.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-07T04:53:22.000Z (almost 2 years ago)
- Last Synced: 2025-03-03T07:45:19.063Z (over 1 year ago)
- Topics: axios, nest, nestjs, reactjs, socket-io, typescript
- Language: TypeScript
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chat Application with AI Bot
This project is a chat application built with React, TypeScript, and Vite, featuring real-time communication through Socket.IO and AI-driven responses using the Gemini API. The frontend is styled with Tailwind CSS for a modern, responsive design.
## Features
- **Real-time Chat**: Powered by Socket.IO for live messaging.
- **AI Integration**: Utilizes the Gemini API to provide intelligent chat responses.
- **Modern Design**: Styled with Tailwind CSS for a sleek, responsive UI.
- **Type Safety**: Built with TypeScript for improved development experience and code quality.
## Table of Contents
- [Getting Started](#getting-started)
- [Project Setup](#project-setup)
- [ESLint Configuration](#eslint-configuration)
- [Socket.IO Integration](#socketio-integration)
- [Gemini API Integration](#gemini-api-integration)
- [HTML Sanitization](#html-sanitization)
- [Usage](#usage)
- [Testing](#testing)
- [Resources](#resources)
- [License](#license)
## Getting Started
1. Clone the repository:
```bash
git clone https://github.com/yourusername/chat-app.git