@aaiiccaa/mona-chat-widget v2.1.17
Mona Chat Widget
Chat widget package developed by Netmonk data & solution team to be imported in Netmonk products
🚅 Quick start
Prerequisites
- Install dependencies
npm install - Copy .env.example
cp .env.example .env - Populate .env
Storybook
How to run Storybook locally (access at http://localhost:6006)
npm run storybookHow to build Storybook
npm run build-storybookHow to serve Storybook
npm run serve-storybook
Library (how to update and publish)
- Commit changes
git add . git commit -m "Your commit message" Update version
npm version patch # for bug fixes (1.0.0 -> 1.0.1)npm version minor # for new features (1.0.0 -> 1.1.0)npm version major # for breaking changes (1.0.0 -> 2.0.0)Build as a library (build file at
/distdirectory)npm run buildCopy declaration file to
/distcp ./src/declarations/index.d.ts ./dist/index.d.tsPublish
npm publish
Library (how to import on your project)
- Install package
npm install @aaiiccaa/mona-chat-widget Import styles on your
App.jsxorindex.jsximport "@aaiiccaa/mona-chat-widget/dist/style.css";Import & use component
import { ChatWidget } from "@aaiiccaa/mona-chat-widget"; <ChatWidget userId={"1234"} sourceId={"1"}/>;
Standalone app (for demonstration)
How to run locally (access at
http://localhost:${PORT}/${APP_PREFIX})npm run devHow to build as a standalone app (build file at
/dist-appdirectory)npm run build-appHow to serve standalone app (access at
http://localhost:${PORT}/${APP_PREFIX})npm run serveHow to run on docker (access at
http://localhost:${PORT}/${APP_PREFIX})docker-compose up --build
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago