Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 771 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 771 Bytes

nodejs-interview-exercise

Simple backend API for skills list application.

Project can contain a few "not the best" solutions that can be pointed out by the candidate during interview.

prerequisites

  • node v14.17.0+
  • npm v6.14.15+
  • docker-compose version 1.25.0+
  • docker version 20.10.7+

run tests

  • install dependencies npm install
  • run docker with postgres npm run start:services keep it running in separate terminal
  • run tests npm run test

notes

  • You can switch to use storage mocks in .env file: USE_DB_MOCK=true
  • tests should pass for integration tests with dockerized database and also with mocked storages

troubleshooting

  • in case of error related to installing dependencies install libpq (on mac: brew install libpq)