Welcome To Fibonacci Test Project!
Requirements
Run project in docker
git clone https://github.com/vasyl-chyypesh/fibonacci-test.git
cd fibonacci-test
docker compose up --build
Access the API documentation and test interface
Once the Docker containers are running, open your browser and navigate to http://localhost:8080 to view the interactive API documentation and try out the available endpoints via the UI.
Test via curl
POST data with a number:
curl -d '{"number":7}' -H "Content-Type: application/json" -X POST http://localhost:3000/input
This will send a response with a ticket ID in the body:
{ "ticket": 1 }
GET data by ticket ID:
curl http://localhost:3000/output/1
This will send a response with result data in the body:
{ "ticket": 1, "inputNumber": 7, "fibonacci": "13" }
Health check
curl http://localhost:3000/health
Returns 200 with a status payload:
{ "message": "OK", "time": "2026-06-03T00:00:00.000Z" }
API documentation
Fibonacci UI
Open Fibonacci calculator page
Coverage report
Benchmark report
Iterative vs recursive Fibonacci performance, measured with node:bench. This is a committed
snapshot from a local machine; the report header shows when, on which commit and in which environment it
was measured.
To refresh the snapshot (requires Node.js 26), run the command below and commit
docs/benchmarks/report.html:
npm run bench:report:html