Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Latest commit

 

History

History
44 lines (31 loc) · 1.16 KB

File metadata and controls

44 lines (31 loc) · 1.16 KB

This simple node example stands up a bare-bones express server and takes a user through the authentication flow, then hits the data API info endpoint, and streams the results to a page.

Prerequisites


Before you start, you will need:

Install the repo locally


$ git clone /~https://github.com/TrueLayer/truelayer-client-javascript-sample.git

Steps to run the App 🎮

  1. Install the dependencies
$ npm install
  1. Create the .env file
$ cp .env.sample .env
  1. Go to https://console.truelayer.com and set up your client account

  2. Navigate to your app's settings page on https://console.truelayer.com/settings/Application

  3. Obtain your client_id and client_secret on the page and store them safely locally

  4. Whitelist your app's callback url in the redirect url section

  5. Add the credentials obtained in the 3 steps above to .env file

  6. Start the app

$ npm start
  1. Navigate to http://localhost:5000 and view the app!