This project is an AI chat application interface developed using React for the frontend and Nest.js for the backend. It allows users to interact with an AI assistant through a simple and user-friendly chat interface. It uses a REST API in backend that can receive user input from the frontend and respond based on a simple response algorithm that returns predefined responses based on keywords in the user input.
Before running the application, make sure you have the following installed:
- React.js (Preferably the latest version)
- npm (Node Package Manager)
- Nest js
- Git (For version control)
To set up the project locally, follow these steps:
First, clone the repository to your local machine:
git clone https://github.com/kaiwalya-07/AI_CHAT_APP_INTERFACE
cd AI_CHAT_APP_INTERFACE
npx create-react-app my-chat-app --template typescript
cd my-chat-app
npm i -g @nestjs/cli
nest new my-chat-backend
cd my-chat-backend
For the frontend after moving to the directory
npm start
For the backend after moving to the directory
npm run start
This will launch the React application in your default web browser. By default, it will be accessible at http://localhost:3002 (As i have used this in code you may change it).
Play with the functionsof chat bot