FrancisG-Massey / Capstone2016

4 stars 0 forks source link

Refactor the API to use a single centralized config file. #177

Open sam-hunt opened 8 years ago

sam-hunt commented 8 years ago

Currently we have the dataset definitions in one file, and the database connection properties in another. Other configurable settings like session timeout currently have no place, but should have one.

  1. The config should be encapsulated in its own class separate from the framework's static functionality.
  2. The config object should be loaded from JSON on server startup, and stored in memory for the lifetime of API server.
  3. Datasets should have their own class, and should have a property for memory caching to speed up performance.
  4. Database config should also possibly be stored in its own class within the greater config hierarchy.