Setting up your development environment
nvm to automatically load the correct version of Node, NPM and Serverless Framework into the shell.
Use the install script for Node Version Manager then run the following command in your terminal
npm install -g avn avn-nvm && avn setup
OSX users can install direnv using Homebrew
brew install direnv
Add the following line to your
eval "$(direnv hook bash)"
or if you use zsh enter this to your
eval "$(direnv hook zsh)"
Once the above are installed, navigate to the project root and the following to install npm modules (including serverless) and run the environment loader
npm install && direnv allow .
Create your .env file(s)
You need to create a
.env-dev-deploy file to deploy the project to your environment
If you want to load more environment variables create more
.env-xx files to load variables.