-
cp .env.example .envand fill in the values (see below). -
docker compose up.
-
Go to Bunq web and select the account you want to monitor. In the url (
https://web.bunq.com/user/BUNQ_USER_ID/account/BUNQ_ACCOUNT_ID) selectBUNQ_ACCOUNT_IDandBUNQ_ACCOUNT_ID. -
In the Bunq app if you scroll down in your profile and generate an API key as
BUNQ_API_KEY. -
Go to https://github.com/bunq/postman and download and add to Postman. Add your API key in the environment (production), set it in the calls, and call API context:
Create installationandAdd the device(change body if needed, e.g. scope IP). From installation you copyBUNQ_INSTALLATION_TOKEN. -
Go to your production environment in Postman and find
private_key_client. Convert it to base64base64 -i private_key.pem -o private_key_base64.txt && cat private_key_base64.txt. Copy the output asBUNQ_PRIVATE_KEY. -
To deploy to fly.io, follow the instructions in the fly.io documentation.
-
Do
fly launch. -
And set the above environment variables:
fly secrets set BUNQ_USER_ID=xxx BUNQ_ACCOUNT_ID=xxx BUNQ_API_KEY=xxx BUNQ_INSTALLATION_TOKEN=xxx BUNQ_PRIVATE_KEY=xxx -
Now you can deploy with
fly deploy.