Configuration, Configuration, Configuration

Bf962f059393fdaffe5c81fb17d765d8?s=47 M O T
November 08, 2014

Configuration, Configuration, Configuration

Gave this loosely formatted lightning talk at NationJS 2014.

Nconf, node-config, and roll-your-own configuration is prevalent in Node-land. They all have major weaknesses and are not UNIX-y. We're doing it wrong.

We should be using a UNIX approach. Use Dotenv.

Live code associated with this presentation is here.

Bf962f059393fdaffe5c81fb17d765d8?s=128

M O T

November 08, 2014
Tweet

Transcript

  1. CONFIGURATION CONFIGURATION CONFIGURATION

  2. None
  3. Current state of configuration in node-land.

  4. None
  5. None
  6. None
  7. None
  8. None
  9. .env

  10. .load()

  11. process.env.X

  12. One more time.

  13. None
  14. jk.

  15. Define a .env file. Load ENVs in. Access with process.env.X.

  16. Let’s live code, real quick.

  17. @motdotla