This project is an interactive chat application featuring a conversational AI assistant. The app is designed using vite JS + React and offers a visually engaging interface, complete with cursor-tracking eyes and animated UI elements.
- Dynamic Chat Interface: Users can interact with the AI in a real-time chat environment.
- Cursor Tracking Eyes: Fun and interactive eyes that follow the user's cursor on the screen.
- Error Handling: Provides clear feedback when there are issues communicating with the server.
- Loading Indicators: Displays a spinner animation while waiting for the server response.
- Input Formatting: Supports code blocks, lists, and other text formatting in the chat display.
- React: For building the UI components.
- CSS: For custom styling and animations.
- **Node.js Backend **: Handles API requests and responses.
- Fetch API: For making asynchronous HTTP requests to the server.
- JSON Streaming: Processes server responses in chunks for smoother interaction.
Before you begin, ensure you have the following installed:
- Node.js: Version 16 or above.
- npm: Version 7 or above.
-
Clone this repository to your local machine:
git clone https://github.com/sandipkalsait/toffy-console-webapp.git
-
Navigate to the project directory:
cd toffy-console-webapp -
Install the dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser and navigate to
http://localhost:3000to use the app.
- Type a prompt in the input field.
- Press the "Send" button or hit "Enter" to submit the prompt.
- Wait for the AI response to appear in the chat window.
- Enjoy the interactive experience with the cursor-tracking eyes!
- Update the API endpoint in the
fetchcall withinApp.jsxif your backend server is hosted on a different URL.
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add your commit message here" - Push to the branch:
git push origin feature-name
- Submit a pull request.
This project is licensed under the MIT License.
