-
Clone the repository:
git clone https://github.com/your-username/app-nodejs-codechallenge.git cd app-nodejs-codechallenge
-
Install dependencies for the Transaction API:
cd transaction npm install
-
Install dependencies for the Anti Fraud API:
cd anti-fraud npm install
-
Set up Docker containers, wait for the build, and run migrations for the Transaction API:
docker-compose up -d # Wait until the "/transaction/dist" folder appears cd transaction npm run migrations:up
The application is now running and can be consumed using the following endpoints:
-
Create a Transaction (POST):
POST - http://localhost:3000/transaction/create
-
Get all Transactions (GET):
GET - http://localhost:3000/transaction
Unfortunately, I didn't have time to implement some additional features, such as tests, and make a better architecture, but i had a great time working on this project, i leaned so much things that i didnt know and appreciate the opportunity. Thank you!