This app demonstrate a better way of injecting enviromental apps into angular using gulp tasks.
Simply run node index
to run node server. This will also generate angular configuration file and place it in client folder.
Configuration file is angular constant service with key value pairs for certain node env variables.
Process of injecting these values is done by gulp command: config
.
gulp config
takes config.json as default config and generates angular constant service. It will inject all the configs from config.json. If you want to override some of the value from the config or add new ones, add them to enviromental variables and constants
in configureSetup
(gulpfile.js).