Simple backend application written in node / express, mainly for writing API E2E tests with usage of Supertest library.
To run app on the local environment, you will need:
- node >= 18
- pnpm
- docker and docker-compose
- clone this repo
- create
.env
fromenv-example
file and setPOSTGRES_USER
andPOSTGRES_PASSWORD
- install all dependencies:
pnpm install
- create database:
docker-compose up -d
- seed DB by executing script:
seed-db.sh
- run the app by executing:
pnpm start
- run tests:
pnpm test
API documentation you can find under /api-docs
- add validations for each endpoint
- cover it with tests