My solution (TypeScript version) to the Back-End BR "loans" challenge.
In project's root directory, create a .env file:
cp .env.example .env
Then fill the values in your .env file accordingly.
| Variable | Description |
|---|---|
SERVICE_NAME |
String. Application's name. |
SERVICE_HTTP_PORT |
Number. HTTP server port. |
docker build -t loans .docker run --rm -it --name loans loansdocker exec -it loans /bin/sh| Method | URI | Description |
|---|---|---|
POST |
/match-profile |
List loans that match a given customer profile. |
{
"age": 26,
"cpf": "275.484.389-23",
"name": "Vuxaywua Zukiagou",
"income": 7000.00,
"location": "SP"
}