Budget is an open-source web application that helps you keep track of your finances.
You can use Budget by hosting it yourself, or using the instance hosted by us.
git clone https://github.com/range-of-motion/budget.git
)
master
branch might not always be stable (git checkout TAG
)composer install --no-dev -o
)php artisan budget:install
).env
(database or mail, for example)php artisan migrate
)crontab -e
) and add * * * * * cd /path-to-budget && php artisan schedule:run >> /dev/null 2>&1
Note that in order for certain features to work properly, the jobs queue needs to be watched. This can be done by either running php artisan queue:work
or using Supervisor.
Use the command below to update to the latest version.
php artisan budget:update
You can get set-up with Budget using Docker.
If you just want an environment that takes care of the webserver, PHP and database, you should use this option. It will spin up the services required to run Budget, but not do any of the setting up for the application (activities such as installing Composer dependencies or generating an application key).
docker-compose up -d
If you want everything to be installed and set-up from start to finish, you should use this option. By providing the BUDGET_SETUP
environment variable, a script will run that does everything you need–whether it's installing Composer dependencies or compiling front-end assets.
It may take a few minutes before the process is completed and you're able to use Budget.
BUDGET_SETUP=1 docker-compose up -d
1 题目分析如下 1.1 category 类 要求在category class 中定义四五个函数: deposit(amount, description=''),用了添加以下格式的内容:{"amount": amount, "description": description}; withdraw()函数,与desposit()类似,但是amount需要改成负数,若有amount发生,需要将