A sample integration of Plaid Link in Elm.
Make sure you have Elm 0.17 installed. Then install all dependencies and build the app:
make setup all
Start the server:
PLAID_CLIENT_ID=test_id PLAID_SECRET=test_secret make start
Run a watcher that compiles Elm code when it changes:
make watch
All Elm code is formatted with elm-format
.
The Elm package repository does not allow packages that call to native code through ports, hence this project cannot be published as an Elm library. However, it’s fairly straightforward to add Plaid Link into an Elm application:
- Copy the
src/Plaid.elm
file into your own project - Initialize Plaid Link and wire the ports—see
public/index.html
for an example. - Trigger
Plaid.cmdToOpen
command when you want to open Plaid Link - Handle messages triggered when Plaid Link is loaded, successfully completed or cancelled by the user. See the
update
function insrc/Main.elm
.
MIT.