DanielRossini1 / app-nodejs-codechallenge

Code challenge for potential Yaperos :rocket:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

app-nodejs-codechallenge

How to Run the Application

Steps

  1. Clone the repository:

    git clone https://github.com/your-username/app-nodejs-codechallenge.git
    cd app-nodejs-codechallenge
  2. Install dependencies for the Transaction API:

    cd transaction
    npm install
  3. Install dependencies for the Anti Fraud API:

    cd anti-fraud
    npm install
  4. 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!

About

Code challenge for potential Yaperos :rocket:


Languages

Language:TypeScript 92.3%Language:JavaScript 6.3%Language:Dockerfile 1.4%