Download account balance and transaction history from a bank account and save to Google Spreadsheet.
Modular app to fetch transaction history and account balance from the bank API and write to Google Spreadsheet.
Written in Nest framework using TypeScript.
Currently supported banks:
$ npm install
.env.development
in the root of repositoryAccBalanceApp
Encode the content of the file with Base64 and save it to the .env.development
as GOOGLE_AUTH
key
GOOGLE_AUTH="YmFzZTY0IGVuY29kZWQgSlNPTiBmaWxlIGFzIGEgc3RyaW5nIGhlcmU="
Go to https://drive.google.com and create new empty Spreadsheet
client_email
) with edit permissions.Copy the ID of the Spreadsheet from the URL
e.g.
https://docs.google.com/spreadsheets/d/5BxICDTRQpIsPK_tcJJm4Ni9gjtPsDHErXE_m-dDQM4c/edit
# id == "5BxICDTRQpIsPK_tcJJm4Ni9gjtPsDHErXE_m-dDQM4c" (YOUR ID DIFFERS!)
Save the ID to the .env.development
file as GOOGLE_SHEET_ID
key
GOOGLE_SHEET_ID=5BxICDTRQpIsPK_tcJJm4Ni9gjtPsDHErXE_m-dDQM4c
🎉🎉🎉 That’s all! Congrats! 🎉🎉🎉
Now run the app with yarn start:dev
or npm start:dev
and the CRON should run after 10 seconds.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov