climate-cooperative / home-energy-assessment-database

Documentation, conversions, and data supporting Climate Cooperative's home energy audit and calculation tools.
Apache License 2.0
3 stars 4 forks source link

Implement environment config driven app start #45

Open rgraue opened 1 month ago

rgraue commented 1 month ago

Description

Many of the future issues, and goals of this project require the involvement of some sort of configuration to start and connect to downstream partners correctly.

In order to automate this, we'll take advantage of .env files to assist with the auto configuration.

Given an appropriately filled out .env file When the app starts Then the app processes all env vars and configures services to be used within application

Technical Notes

  1. move all existing constants that would be considered env var to the .env
  2. a service that iterates through env vars, checks values, determines configuration
  3. UNIT TESTS!!!!!!

Risks

May need to wait for [TODO PLACE IN COMMENTS] to be done

Related Issues Or Discussions

[...Issues]

rgraue commented 1 month ago

Best wait for #47 to be done. and potentially #46 ...