Moved DB queries to separate file
Moved Sparebank1 API call to separate file
Create database tokens table if it doesn't exist
Signed-off-by: Martin Berg Alstad <git@martials.no>
- Added Actual account ids and log level to .env.example.
- Fixed timestamp error by downloading the budget after init.
- Hardcoded date in test.
- Separate logging file for configurations.
- Organized test
- More logging in main
- Fixed wrong paths for some files
- Load a .env.test.local file when running tests
Signed-off-by: Martin Berg Alstad <git@martials.no>
- Env key to be more generic
- Cache directory to .cache
- Multiply bank amount by 100 to get correct conversion rate
Removed:
- Unused functions in Actual.ts
Added:
- Test for main functionality
- BankStub for testing
- Added imported_id to Actual Transaction to avoid duplicates
- CronJob
- interface and simple impl for Actual
- interface and simple impl for Sparebank1
- Mappings between sparebank1 transactions and actual transactions
- Requires type keyword on type imports