polyfact / polyfire-chat-react-vite-js-boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ€– polyfire-chat-react-boilerplate

Elevate your chat experience with the Polyfire SDK, seamlessly integrated into a React project and stylishly crafted using styled-components! Embrace the power and safety of TypeScript in your React development.

πŸ“Œ Table of Contents

🌟 Features

  • Smooth integration with the Polyfire SDK for enhanced chat functionalities.
  • Ready-to-use themes for chat, header, and footer, customizable to fit your needs.
  • Developed with the versatile and powerful React framework.

πŸ”§ Prerequisites

  • Node.js
  • npm/yarn

πŸš€ Installation

1️⃣. Clone the repository:

git clone https://github.com/polyfire-ai/polyfire-chat-react-boilerplate.git

2️⃣. Navigate to the project directory:

cd polyfire-chat-react-boilerplate

3️⃣. Install dependencies:

npm install

πŸ–₯ Usage

1️⃣. Launch the development server:

npm start

2️⃣. Visit http://localhost:3000 to see your chatbot in action!

🎨 Color Picker for Development

In the development environment, a color picker tool is included for personalizing the chat UI's color palette. This tool enables developers to experiment with various colors in real-time. After selecting your preferred colors, click the "Copy Config Color" button to copy the configuration. Then, update the default color configuration in src/app/page.jsx with your new selection.

πŸ’¬ Using polyfire-cli

Opt for the polyfire-cli for a streamlined setup:

1️⃣. Activate the CLI:

npx polyfire-js

2️⃣. Choose "chat". 3️⃣. Follow the step-by-step instructions for a hassle-free configuration.

πŸ”‘ Scripts

  • npm start: Run the development server.
  • npm run build: Get ready for production.
  • npm run preview: Peek into the production-ready build.

πŸ“š Dependencies

  • Core: react, react-dom
  • Chat: @polyfire/chat, polyfire
  • Icons: phosphor-react
  • Dialog: @radix-ui/react-dialog
  • Types: typescript

πŸ₯ž Stack

  • React
  • TypeScript

✨ Contributing

Ideas? πŸ€” Bugs? 🐞 Be a part of our journey! Check out issues to contribute.

πŸ“œ License

This project adheres to the MIT License. Refer to the LICENSE file for more information.


If polyfire-chat-react-boilerplate brightens your day, don't forget to give us a ⭐ on GitHub!

About

License:MIT License


Languages

Language:JavaScript 67.0%Language:CSS 20.1%Language:HTML 12.9%