All Anolet services use Doppler to manage environment variables. To get access to Anolet's Doppler workplace, sign up to Doppler with your @anolet.com email. You will be prompted to create your own Doppler workplace. Click "Skip" located in the top right. Then, ask Rus to grant you permissions. You will be added as a collaborator and will be able to view secrets for dev.
Run the following commands:
mkdir -p $HOME/bin
curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh | sh -s -- --install-path $HOME/binNow, verify the Doppler CLI was installed by checking its version:
doppler -vNow, you will have to authenticate Doppler CLI with your Doppler account by running:
doppler loginYou will only have to do this part once for all of Anolet, so you will not need to reinstall Doppler CLI or relogin if you are working on the API.
Now, you'll need to configure this folder to use the Doppler configuration for the dev@client project:
doppler setupYou'll see a message that says "Use default settings from repo config file (...)?". Answer yes. You have now configured Doppler.
If you want to hange any environment variables for testing purposes, create a branched config.
Install all the NPM packages by running the following command:
npm iStart the node server with the following command:
npm run devThis will automatically restart the server when server changes are made.
