Somero Budget v3

The idea:


The simplest way to budget: put however much you want into each account, and it waits until you've made all your adjustments to do away with the math. That way, you can assign however much you want to every 'account' you have, then see how much you have to take from your check (and how much you'll have left).

 

The underneath

The app theoretically has two main models:

  • accounts
  • audits

An account is simply a name with a total dollar amount associated with it. Every time we edit an account's total, we log an 'audit' recording the old and new value.

Every edit will have a date and batch-number associated with it. If its date is today, the edit will be performed synchronously, an audit made, and the result returned to the client. If its date is in the future, it will be scheduled. When the edit is made, an audit will be made.

 

Get started

cp .env.example .env

composer install
npm install
npm start

View the Vue readme

View the Laravel readme

Publish it

Using Laravel Forge

Update your nginx config: provide two different location blocks: one for the frontend, one for the backend. Use explicitly-registered routes for your backend, for both legibility and safety (and because no other way works). These will replace the existing location / block.

location / {
    # {{ ROOT_PATH }}/dist in a Forge Template
    root /home/user/domain.com/dist;
    try_files $uri $uri/ /index.html;
}

location ~ ^\/(api|sanctum|login|logout|register|user|_ignition|password-reset|clockwork|__clockwork).* {
    # {{ PATH }} in a Forge Template
    root /home/user/domain.com/public;
    try_files $uri $uri/ /index.php?$query_string;
}