https://github.com/widefix/financial-plan
Simple financial plan web app
https://github.com/widefix/financial-plan
rails
Last synced: 30 days ago
JSON representation
Simple financial plan web app
- Host: GitHub
- URL: https://github.com/widefix/financial-plan
- Owner: widefix
- Created: 2022-06-07T22:45:41.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T08:59:27.000Z (almost 4 years ago)
- Last Synced: 2025-08-07T04:51:22.758Z (10 months ago)
- Topics: rails
- Language: Ruby
- Homepage:
- Size: 38.1 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Financial Plan on Rails
This is a Rails application demo that was described in this [article](https://railsguides.net/financial-plan-on-rails/).
It shows how to combine all these things together to make a financial planning web application in a moment:
- [Rails](https://rubyonrails.org/)
- [ActiveAdmin](https://activeadmin.info/)
- [Scenic](https://github.com/scenic-views/scenic)
The application is [deployed on Heroku](https://personal-financial-plan.herokuapp.com/).
## Implementation notes
It demonstrates how heavy calculations can be defined on DB level instead of application one. That makes application faster and robuster.
Look at the "virtual model" `CumulativeProfit` [here](https://github.com/widefix/financial-plan/blob/02fcf7c5093513eadc8aa8491926953712a3d352/app/models/cumulative_profit.rb).
This model uses `cumulative_profits` [view](https://github.com/widefix/financial-plan/blob/main/db/schema.rb#L72-L80) as a source feed.
The model has all reading facilities like a "traditional" model, expect it can't write data.