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.
- node v14.17.0+
- npm v6.14.15+
- docker-compose version 1.25.0+
- docker version 20.10.7+
- install dependencies
npm install
- run docker with postgres
npm run start:services
keep it running in separate terminal - run tests
npm run test
- 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
- in case of error related to installing dependencies install
libpq
(on mac:brew install libpq
)