cibus-budget-utilizer
Prerequisites
- azd CLI - install
- az CLI - install
- func - azure functions core utils - install
Setup
git clone https://github.com/AdamEr8/cibus-budget-utilizer.git
cd cibus-budget-utilizer
az login
az account set --subscription < YOUR_SUBSCRIPTION_HERE >
azd init # It will ask for environment name, write whatever you wish
azd up # Here it will ask you for the subscription and RG where you want to create the azure function, the name of the function and your credentials
func azure functionapp publish < YOUR_FUNCION_APP_NAME_HERE >
Configurations
- main.bicep file holds several configs. If you change any, re-run setup from the top. You can configure the following values:
- "voucherGeneratorAlgo": 'Optimized' value will use one algo and 'Greedy' will use another voucher prices algo (Greedy if none provided).
- "allowOverdraft": If true, the minimum amount of out-of-pocket pay will be allowed when pruchasing coupons. If false, some cibus credit will remain and not be utilized.
- "maxVoucher": the maximum value of the vouchers you would like to have (shufersal doesn't respect partial vouchers so 200 shekels voucher might be inconvenient) the default is 100.
- In the function.json file, you can configure the timing of function trigger. For further info, see the official docs. If you make any changes, rerun
func azure functionapp publish
command as seen in setup mode.