codeforhuntsville / Frontier

A civic app for finding whats near me
http://codeforhuntsville.com/
MIT License
9 stars 7 forks source link

Abort server start when not properly configured #20

Closed chadxz closed 9 years ago

chadxz commented 9 years ago

In #18 @clarkda suggested that we detect any critical configuration that is missing and just abort the server start if any of it is missing. I agree that this would be better than what we have now (reporting it on the api response). Let's get it done!

Ideally an error should be printed to the console describing what is wrong and how to fix. There are some details in https://github.com/codeforhuntsville/Frontier/issues/9#issuecomment-101507165 for the specific issue of setting the Google Places API key.

chadxz commented 9 years ago

Whoever fixes this should also fix the restaurants api endpoint to not worry about checking that the Google places api key exists since the check will happen at server start