This is an application that returns a list of books, created to apply the best practices of TDD using Node JS, like unit tests, integration tests and contract tests. Libs used: Express, Mocha, Chai and Supertest; implemented using ES6 + Babel and Authorization with Jwt.
- Clone repository.
- Install dependencies.
- Run lint and tests.
git clone git@github.com:moshemeirelles/nodejs-tdd-api.git books-api
cd books-api
npm install
npm test
Just POST your email and password to /token
and you receive your token to access api endpoints.