apt-get install git curl yarn
# or
brew install git curl yarn
node & npm & yarn
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
nvm install 12
nvm use 12
Get the project
git clone [email protected]:teamstarter/node-jobs.git
cd node-jobs
yarn
yarn start
vim ~/.bashrc
#Add at the end of the file:
alias npm-exec='PATH=$(npm bin):$PATH'
npm-exec
:wq #Then save and quit
source ~/.bashrc
yarn run gnj migrate ../config/sequelizeConfig.js
yarn start
yarn test
Debugging a specific test
node --inspect-brk ./node_modules/jest/bin/jest.js ./tests/job.spec.js