Library-api is a REST API that provides endpoints for querying database.
List of available endpoints is described HERE.
git clone https://github.com/michalszc/Library-api.git
cd Library-api
npm installNODE_ENV=development
PORT=8080
MONGO_URI=mongodb://127.0.0.1:27017/librarynpm run devnpm run start# lint code with ESLint
npm run eslint
# try to fix ESLint errors
npm run eslint:fix# run all tests with jest
npm run test
# run all tests and watch for changes
npm run test:watch
# run all tests and report coverage information
npm run test:coverage# run lint and tests
npm run validate# show logs in production
pm2 logs# generate documentation
npm run docs# run container in development
npm run docker:dev
# run container in production
npm run docker:prod