The codebase consists of a basic NodeJS project with simple Sequelize
models, Express.js
routes, and integration tests.
A db connection to a local SQLite storage is already setup and all required tables (Users
and Contacts
), mapping the sequelize
models, are in place.
The list of API routes
The Auth
tests check endpoints for user sign-up and login, including verifying that protected routes are not accessible without authentication.
The CRUD
tests are independent from the Auth
tests. They verify CRUD operations on the Contacts
table.
Test results
- Node
- Yarn
Install the dependencies.
yarn
Run the NodeJs backend locally.
yarn dev
Execute the tests
yarn test
yarn unit-test