Skip to content

jdudek/elm-plaid-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elm-plaid-link

A sample integration of Plaid Link in Elm.

Installation

Make sure you have Elm 0.17 installed. Then install all dependencies and build the app:

make setup all

Development

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

Conventions

All Elm code is formatted with elm-format.

Plaid Link in your own app

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 in src/Main.elm.

License

MIT.

About

An example of embedding Plaid Link in an Elm application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published