This is a minimal app that implements Plaid using a very basic HTML/vanilla JS frontend with an Express/Node backend. After linking a sample bank account, the app retrieves balance information associated with the account and renders it on the home page.
If you're looking for a more fully-featured quickstart, covering more API endpoints, available in more languages, and with explanations of the underlying flows, see the official Plaid Quickstart.
This project uses Node. For information on installing Node, see How to install Node.js.
Ensure you're in the vanilla_js/ folder, then install the necessary dependencies:
npm installCopy the included .env.example to a file called .env.
cp .env.example .envFill out the contents of the .env file with the client ID and Sandbox secret in your Plaid dashboard. Don't place quotes (") around the credentials (i.e., PLAID_CLIENT_ID=adn08a280hqdaj0ad). Use the "Sandbox" secret when setting the PLAID_SECRET variable.
npm startThe app will run on port 8080.
The app allows you to link a sample bank account. Use the following sample credentials:
- Username:
user_good - Password:
pass_good
If prompted to provide a multi-factor authentication code, use 1234
If you encounter a MISSING_FIELDS error, it's possible you did not properly fill out the .env file. Be sure to add your client ID and Sandbox secret to the corresponding variables in the file.