https://github.com/rootstrap/rs-chatbot-react
https://github.com/rootstrap/rs-chatbot-react
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rootstrap/rs-chatbot-react
- Owner: rootstrap
- Created: 2023-10-25T16:27:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-08T21:15:29.000Z (over 1 year ago)
- Last Synced: 2025-01-10T14:06:27.878Z (about 1 year ago)
- Language: TypeScript
- Size: 1.56 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# rs-chatbot-react
Rootstrap AI chatbot
## Setup
Clone the repo and update the `config.ts` file
```ts
const CONFIG = {
// API url
API_URL: "https://chatbot-api-url.com/api",
// Displayed at the top of the chat
CHATBOT_NAME: "Ask AI",
// Displayed next to each chatbot message
CHATBOT_USERNAME: "Bot",
}
```
Install dependencies and run project
```sh
npm i && npm run dev
```
## Build
A pre-commit hook will run `build` before each commit and it will add the `dist` folder.
## Test
Push your changes and use the branch name or commit as version
```
https://cdn.jsdelivr.net/gh/rootstrap/rs-chatbot-react@{VERSION}/dist/index.js
```
## Release
1. Create a new release after changes are committed to the `main` branch.
2. Update the release version in the [jsDelivr](https://www.jsdelivr.com/documentation#id-github) url:
```
https://cdn.jsdelivr.net/gh/rootstrap/rs-chatbot-react@{VERSION}/dist/index.js
```