https://github.com/codinglogan/mx-connect-demo
A repo that holds clients/servers to demonstrate how to implement the Connect Widget successfully.
https://github.com/codinglogan/mx-connect-demo
Last synced: 8 months ago
JSON representation
A repo that holds clients/servers to demonstrate how to implement the Connect Widget successfully.
- Host: GitHub
- URL: https://github.com/codinglogan/mx-connect-demo
- Owner: codingLogan
- Created: 2024-08-13T13:08:55.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-21T17:20:53.000Z (over 1 year ago)
- Last Synced: 2024-11-21T18:24:50.547Z (over 1 year ago)
- Language: Swift
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MX Connect Demo
This repository is a helpful reference for how to interact with the MX Connect Widget. It should help answer questions like:
- What events does the widget send to my app?
- How can I react to events that happen in the widget?
- What changes if I need to use a _webview in a mobile app_?
- How can I close the widget?
## Getting Started
Obtain your API credentials
1. Sign up at https://dashboard.mx.com and log in.
2. Obtain your _Api Key_ and your _Client ID_ from your dashboard
3. Copy `.env.sample` in the root directory to a new file named `.env` and fill in the values
Set up a Client
1. In the terminal navigate to `./clients/web`
2. Run `npm install`
Set up a Server
1. In the terminal navigate to `./servers/nodejs`
2. Run `npm install`
3. Start the server using `npm start`
## Open a Client
The web Client is automatically running with the Node Server
- Navigate to http://localhost:3000 to open it.
Mobile Client
- ...stay tuned...