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.
Before you start, you will need:
$ git clone https://github.com/TrueLayer/truelayer-client-javascript-sample.git
- Install the dependencies
$ npm install
- Create the .env file
$ cp .env.sample .env
-
Go to https://console.truelayer.com and set up your client account
-
Navigate to your app's settings page on https://console.truelayer.com/settings/Application
-
Obtain your client_id and client_secret on the page and store them safely locally
-
Whitelist your app's callback url in the redirect url section
-
Add the credentials obtained in the 3 steps above to
.env
file -
Start the app
$ npm start
- Navigate to
http://localhost:5000
and view the app!