Sample backend challenge template
-
Install nvm:
- For MacOs:
- Install Homebrew if not already installed:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Install node via nvm intall not already installed:
brew install nvm - Add the following lines to your shell profile file (e.g., ~/.bashrc,
~/.zshrc, or ~/.bash_profile):
export NVM_DIR=~/.nvm [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion- Restart your terminal or run
source ~/.your_shell_profile
- Install Homebrew if not already installed:
- For windows:
- Follow instructions here:
https://github.com/coreybutler/nvm-windows#installation--upgrades
- Follow instructions here:
- For MacOs:
-
Verify installation:
nvm --version -
Install node 20 version if not already installed:
nvm install 20 -
Install yarn if not already installed:
npm install -g yarn -
Check node and yarn versions:
node --versionandyarn --version -
Install depdendencies:
yarn -
Execute hello-world file:
yarn helloin terminal. You should see a'Hello, world!'message printed. -
Execute test:
yarn test. You should see all tests passing.