Instructions:
-
Clone this repository
git clone https://github.com/SalemStonem/rest-api-fibo.git cd rest-api-fibo
-
Install packages
npm install
-
start server locally
node app.js
-
Send requests with Postman or a similar
http://localhost:3000/?number=6
I try to do my best with febonacci checking a older exersises and the key is in the formula:
fo = 0; f1 = 1; fn = fn-1 + fn-2