A sample project for testing the integration with the TrueLayer API.
-
Requirements
- Docker
- Node.js
-
Steps to run in development mode
docker-compose up- Please create following databases in the locally created mysql database server
localhost:3306:database_development: for the normal run of the serverdatabase_test: for the test run of the server
- Please create following databases in the locally created mysql database server
npm start
- setup a new user inside TrueLayer API`s website
- set the api environment as Sandbox
- receive the client id and secret from the API`s dashboard
- add a new redirect url as:
http://localhost:5000/auth/callback - copy the example.env file as .env in the root directory, and set the following variables:
- TRUE_LAYER_CLIENT_SECRET
- TRUE_LAYER_CLIENT_ID
- receive and configure the authentication url in env variable: TRUE_LAYER_AUTH_LINK
In the project directory, you can run:
npm start: Runs the server on port 5000.npm test: Launches the test runner.