Skip to content

Add configurable application settings#10

Open
Hydra-Slayer wants to merge 2 commits intoMarcin99b:mainfrom
Hydra-Slayer:feature/configurable-settings
Open

Add configurable application settings#10
Hydra-Slayer wants to merge 2 commits intoMarcin99b:mainfrom
Hydra-Slayer:feature/configurable-settings

Conversation

@Hydra-Slayer
Copy link
Copy Markdown

Summary

Fixes #6 - Make the application configurable without changing code

Changes Made

  • ✅ Created PredictorSettings configuration model
  • ✅ Moved hard-coded calculation limits to config
  • ✅ Added support for environment variables
  • ✅ Works with Docker and local development
  • ✅ Follows twelve-factor app principles
  • ✅ Added comprehensive documentation

Testing

  • All existing functionality preserved
  • Configuration can be changed at runtime
  • Works in both development and production environments

Hydra-Slayer added 2 commits July 12, 2025 22:15
- Create PredictorSettings configuration model
- Move hard-coded values to appsettings.json
- Support environment-specific configuration
- Add Docker environment variable support
- Include configuration documentation
- Update .gitignore for .env files

Fixes calculation limits and default values being configurable
without code changes. Supports Docker and local development.

Changes:
- MaxCalculationPeriodMonths: configurable (default 36)
- DefaultInitialBudget: configurable (default 48750)
- EnableExampleData: configurable (default true)
- MaxAllowedCalculationPeriod: configurable (default 120)

This follows twelve-factor app principles and makes the
application more flexible for different deployment environments.
- Update PredictorSettings with better documentation
- Improve configuration documentation
- Refine Program.cs implementation
- Add additional configuration examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Configuration Options

1 participant