There are two methods allowed for configuration: environment
variables or writing a config.json
file.
- Environment (
env.js
) config.json
The above list means that environment
configuration variables will override those from config.json
file.
- Copy
config.sample.json
toconfig.json
. - Set Twitter and/or Facebook application keys. Check README.md for a detailed description on this.
- Run
node balloons.js
at the root of this application.
- Define your variables like this:
PORT=8000
- Run
node balloons.js
at the root of this application.
There are different ways to define environment variables with node. Use the one that fits you best.
- We should have a
default.js
in the config inheritance. With this we may freeenv.js
from all thethis || that
ugly definitions.