This project uses Docker Compose to run a local service on port 8888
.
Make sure you have the following installed:
Check the installation:
docker --version
docker compose version
Make sure port 8888
is not being used by another application.
Linux/macOS:
lsof -i :8888
Windows (PowerShell):
netstat -ano | findstr :8888
If the port is in use, stop the conflicting application or change the port in docker-compose.yml
.
Run the following command from the project root:
docker compose up -d
This will start the services in detached mode (in the background).
Open your browser and go to:
You should see the application interface or a success message.
To stop and remove the containers, networks, and volumes defined in docker-compose.yml
:
docker compose down
Request:
{
"username": "string",
"password": "string"
}
Response:
{
"token": "string",
"expiresIn": "integer"
}
Status Codes:
200 OK
– Successful authentication401 Unauthorized
– Invalid credentials
Headers:
Authorization: Bearer {token}
Response:
{
"accountId": "string",
"balance": "number",
"currency": "string"
}
Status Codes:
200 OK
– Account found and balance retrieved401 Unauthorized
– Missing or invalid token404 Not Found
– Account ID not found
Headers:
Authorization: Bearer {token}
Request:
{
"fromAccount": "string",
"toAccount": "string",
"amount": "string",
"currency": "string",
"description": "string"
}
Response:
{
"transferId": "integer",
"status": "string",
"timestamp": "string"
}
Status Codes:
200 OK
– Transfer completed successfully400 Bad Request
– Validation errors (e.g. malformed fields)401 Unauthorized
– Missing or invalid token402 Payment Required
– Insufficient funds404 Not Found
– Account not found
Headers:
Authorization: Bearer {token}
Query Parameters:
from
(ISO date)to
(ISO date)limit
(number)
Response:
{
"transactions": [
{
"id": "integer",
"type": "string",
"amount": "number",
"currency": "string",
"otherParty": "string",
"description": "string",
"timestamp": "string"
}
]
}
Status Codes:
200 OK
– Transaction history returned401 Unauthorized
– Invalid or missing token404 Not Found
– Account not found