A simple React-based chat interface that mimics modern messaging platforms like Discord or Slack. This chatbot performs text transformations on user input and displays the results in a chat window.
- User Interaction: Send messages and receive responses from the bot.
- Text Transformations: Includes transformations such as:
- Counting words
- Reversing text
- Converting text to uppercase
- Removing vowels
- Replacing spaces with underscores
Make sure vite and npm is installed on your machine.
-
Clone the repository
git clone https://github.com/Naren9521/Chatbot.git cd Chatbot -
Install dependencies:
npm install
-
Run the development server:
npm run dev
Visit
http://localhost:3000in your browser to see the app.
Chatbot/
├── public/
│ ├── favicon.ico
│ ├── index.html
│ └── assets/
│ └── logo.png
├── src/
│ ├── assets/images/
│ │ ├── chatbot.png
│ │ ├── sitare.jpg
│ │ └── user.jpg
│ ├── components/
│ │ ├── ChatBox.jsx
│ │ ├── Message.jsx
│ │ └── SideBar.jsx
│ ├── App.jsx
│ ├── main.jsx
│ └── index.css
├── .gitignore
├── package.json
├── README.md
├── vite.config.js
└── LICENSEChatBox.jsx: Manages the chat interface, including message display and user input.Message.jsx: Renders individual chat messages from both the user and the bot.SideBar.jsx: Provides additional navigation or information (if applicable).
- The interface resembles modern chat apps like Slack or Discord.
- User and bot messages are styled differently for clarity.
- Includes basic validation to ensure meaningful user input.
This project is licensed under the MIT License.
Narendra Singh ChauhanAnmol Kumar