@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 storybook
How to build Storybook
npm run build-storybook
How 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
/dist
directory)npm run build
Copy declaration file to
/dist
cp ./src/declarations/index.d.ts ./dist/index.d.ts
Publish
npm publish
Library (how to import on your project)
- Install package
npm install @aaiiccaa/mona-chat-widget
Import styles on your
App.jsx
orindex.jsx
import "@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 dev
How to build as a standalone app (build file at
/dist-app
directory)npm run build-app
How to serve standalone app (access at
http://localhost:${PORT}/${APP_PREFIX}
)npm run serve
How to run on docker (access at
http://localhost:${PORT}/${APP_PREFIX}
)docker-compose up --build
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago