-
Save is implied
npm config set save=true -
We want the exact version of the dependency
npm config set save-exact=true -
Add supported node version in package.json
{
"engines": {
"node": "4.2.1"
}
}
- Install node foreman for environment variables management
npm install -g foreman
package.json
{
"scripts" : {
"start": "node app.js"
}
}
Create a .env file
nf start
Loads the .env file and starts the application
- All javascript file names are in lowercase.