aldredb/spendinsight

★ 0Forks 0GitHub ↗Compare

README

Spending insight

Please create .env file on the parent folder :

ATLASSEARCHURI="mongodb+srv://username:[email protected]/"
DBNAME="Bank"
CURRENCY="IDR"

To view what is going on with transaction,please copy this code :

else if (bankAccountNumber && month) {     
    const transactions = await db.collection("transaction").find(pipeline).toArray();

    console.log( JSON.stringify(transactions, null, 2));

    …
    
    const output = groupTrans(transactions);

    console.log("after grouping: " +JSON.stringify(output, null, 2));

    if (output) {
}

Contributors

hendritjiptoaaron-evan

Issues