Backend engineering challenge for a job interview with Didomi.
See details here
This is a NestJS application, I am also using Prisma as ORM/ModelBuilder.
- docker and docker compose
- nodejs version >= 15 (use of crypto.randomUUID)
For testing purpose I use VSCode with REST Client plugin. (See ./test-api.rest
file).
Also Docker lanches a PostgreSQL database.
I personnaly use
pnpm
but you can pick an other node package manager
pnpm install
pnpm run start:dev
pnpm prisma migrate dev
pnpm prisma migrate reset dev
pnpm run test
pnpm run test:e2e
In VSCode you can open the ./test-api.rest
file and then run api call by clicking on the Send Request link over the REST command
Warning !
e2e tests and REST Client tests are using the PostgreSQL database.
When unit testing are using an InMemory database (except forsrc/db/db.service.spec.ts
) which don't need to be erased if something went wrong during tests.