How dcowett/finance-tracker works
Project type and purpose
• This is a Ruby on Rails full-stack web application.
• It provides user authentication (via Devise), lets users browse stocks, add them to their portfolio (UserStock), and view/update their positions.
• It uses MVC, Webpacker for JavaScript, Sprockets for CSS/assets, ActionCable for real-time channels, ActiveJob for background tasks, and ActiveMailer for email.
File structure
• app/
• controllers/ – Rails controllers (Welcome, Stocks, UserStocks, Users, Devise controllers)
• models/ – ActiveRecord models (User, Stock, UserStock)
• views/ – ERB templates for pages and Devise workflows
• assets/stylesheets & javascript/packs – client-side code via Sprockets & Webpacker
• channels/ – ActionCable channel definitions for WebSocket streams
• jobs/ – background job definitions
• mailers/ – email templates
• config/ – routes, database.yml, cable.yml, initializers (Devise, assets, security), webpacker config
• db/ – migrations, schema, seeds
• bin/ – Rails, Webpack, Yarn executables
• test/ – system, controller, model, channel tests
• Gemfile – Ruby gems including Rails, Devise, Webpacker, etc.
• package.json & postcss.config.js – front-end dependencies (e.g., Bootstrap)
README
• Placeholder. Confirms Rails 6 + Bootstrap 4, Devise, typical setup steps.