This project is created to test the Payever backend vacancy.
These instructions will help you get a copy of the project up and running on your local machine for development and testing purposes.
To run this project, you need to have Docker installed on your machine. If you don't have Docker installed, you can download and install it from the official website: Docker
To get started, follow these steps:
-
Clone this repository to your local machine:
git clone https://github.com/IgorVVieira/payever-test.git
-
Change into the project directory:
cd payever_test
-
Build and run the project using Docker Compose:
docker-compose up -d
-
The project will now be running on your local machine.
I left a file with the collection in the postman to facilitate the tests, available at: Collection
To run the unit tests for this project, you can use the following command:
docker exec -it nestjs bash
yarn test
Observations: Unfortunately I had a problem running the e2e tests, the first time we had some errors, but when running the second time all the tests passed. Unfortunately I couldn't fix it in time, but I'm working on it. Sorry.
To run the end-to-end tests for this project, you can use the following command:
If you don't have the backend bash open, first run:
docker exec -it nestjs bash
After:
yarn test:e2e
Observation: I had problems creating a mock fs to test avatar.service, I couldn't solve it for a while. I apologize for that.
- The project passes ESLint checks.
- The project builds and starts successfully.
- All endpoints can be successfully requested using Postman.
- Data is stored in the database successfully, and RabbitMQ events are emitted.
- The application is well-covered with unit and functional tests.