This is a cordova project that implements the MX Connect widget via the web sdk.
The servers
directory is copied directly from Logan's repository. The server is used as the backend to communicate with MX servers.
Server How-to
- Obtain developer credentials from https://dashboard.mx.com/
- Copy the
.env.example
file to.env
- Enter your API key and Client ID from https://dashboard.mx.com/
- run
npm install
to install all dependencies - run
npm start
to start the server
Dependencies:
- Cordova cli tools
- Xcode
- Xcode command line tools
- Android studio
- gradle (for android)
- Android sdk tools (for android)
Run the project
- run
npm install
to install all dependencies - run
cordova build ios
to build ios - run
cordova run browser
to start in the browser (note: you may get CORS problems, I used Safari and disabled CORS checks via deveploer tools) - Open the
platforms/ios
directory in Xcode, use Xcode to run the app in a simulator
Tips
- You can inspect the Webview in the iOS simulator by opening Safari and enabling Dev tools