The goal of this test is to develop a REST API in NodeJS with Nest.js that simulates a banking system.
These are the endpoints that you should include:
- Create account;
- Make a deposit;
- Get account balance;
- Get account statement;
- Transfer amount between two accounts;
- Make a withdrawal;
Make sure to have docker installed, otherwise install it here.
- Clone the project
git clone https://github.com/boydwo/bank-clean-code-nestjs.git
- Fetch dependencies
npm install
-
Copy the
.env.example
file over to your own.env
file. -
Mount docker container and start server
docker-compose up
- Running migrations
npx prisma migrate dev
-
Open the Swagger Documentation on http://localhost:3000/docs
-
Run unit tests
npm run test:unit
- Run e2e tests
npm run test:e2e