Configuration via the environment, not hard-coded values.
- read with
process.env.NAME - set inline:
PORT=4000 node app.js - load a
.envfile with thedotenvpackage - never commit secrets — keep them in env vars
See examples/.
Read DB config from env with sensible defaults.