An open API service indexing awesome lists of open source software.

https://github.com/connectycube/chat-widget-medusa-plugin-demo-app

A demo Medusa 2.0 app with ConnectyCube Chat Widget plugin integrated
https://github.com/connectycube/chat-widget-medusa-plugin-demo-app

chat chat-widget medusa-plugin medusajs

Last synced: about 1 year ago
JSON representation

A demo Medusa 2.0 app with ConnectyCube Chat Widget plugin integrated

Awesome Lists containing this project

README

          

# Medusa 2.0 chat widget plugin - Demo app

A demo Medusa 2.0 app with [@connectycube/chat-widget-medusa-plugin](https://github.com/ConnectyCube/chat-widget-medusa-plugin) integrated

## How to run

1. Create ConnectyCube account [https://connectycube.com/signup](https://connectycube.com/signup/) and application, obtain credentials

Screenshot 2025-05-07 at 15 19 59

2. Run the dependant services via `docker compose up`
3. Run core medusa app

```
cd core-app
yarn

cp .env.template .env
# set VITE_CHAT_APP_ID and VITE_CHAT_AUTH_KEY envs in .env file
npx medusa db:setup --db medusa-chat-widget-plugin
npx medusa db:migrate

# create test user
npx medusa user --email user@test.com --password testtest

yarn dev
```

Now open http://localhost:9000/app and login with your test user. Navigate to `Extensions -> Chat` to open a chat page:

Screenshot 2025-05-08 at 12 49 18

For a storefront to configure you will need your Store Id and Store name. You can access them via Developers Tools, Network tab:

Screenshot 2025-05-08 at 12 33 02

4. Create test data in Dashboard:

- create Publishable API Key on `Settings -> Publishable API Keys` page and attach Default Sales Channel to it
- create region on `Settings -> Regions` page
- create some products

4. Run storefront

```
cd storefront
yarn

cp .env.template .env.local
# Set NEXT_PUBLIC_CHAT_APP_ID, NEXT_PUBLIC_CHAT_AUTH_KEY, NEXT_PUBLIC_STORE_ID, NEXT_PUBLIC_STORE_NAME envs.
# Also, specify valid NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY which you can get in Medusa Dashboard -> Settings -> Publishable API Keys

yarn dev # or corepack yarn dev
```

Now open http://localhost:8000, sign in, go to Stores page, select some product and open a Widget

## How can I use it?

On storefront, once logged in and opened product page, there will be a Chat toggle button bottom right:

Screenshot 2025-05-07 at 16 35 22

Once clicked, a chat with seller will be opened where you can ask any product's related questions:

Screenshot 2025-05-07 at 16 39 20

From Medusa dashboard there will be a new page called Chat, with the widget embedded, where all customers' chats are displayed, so you as a merchant can reply:

Screenshot 2025-05-07 at 16 38 13

## Have an issue?

Join our [Discord](https://discord.com/invite/zqbBWNCCFJ) for quick answers to your questions or [file a GitHub issue](https://github.com/ConnectyCube/chat-widget-medusa-plugin-demo-app/issues)

## Community

- [Blog](https://connectycube.com/blog)
- X (twitter)[@ConnectyCube](https://x.com/ConnectyCube)
- [Facebook](https://www.facebook.com/ConnectyCube)

## License

MIT