Skip to content

Latest commit

 

History

History
71 lines (44 loc) · 1.62 KB

README.md

File metadata and controls

71 lines (44 loc) · 1.62 KB

Test-tango

This project consists of the calculation of a given Nth index of the Fibonacci serious and returns the result.

There are two ways you can input the Nth number:

1- From the Fibonacci app.

Screen Shot 2022-03-25 at 7 48 12

2- From the Fibonacci api.

Screen Shot 2022-03-25 at 7 58 26 Screen Shot 2022-03-25 at 7 58 59

Installation

Download zip file or you can clone the project.

git clone https://github.com/jamesrz95/test-tango.git

This project was made with VS Code.

You can open a new terminal in your VS Code and for each folder, you will need to install the dependencies

!!Note, you need nvm v16 or above to run code so make changes if needed.

  nvm use v16

Install dependencies for React application

  cd fibbonacci-app
  npm install

Install dependencies for Nest API

  cd fibonacci-api
  npm install

Then you have to start your API so, change your directory to the fibonacci-api and in your terminal type

  npm run start:dev

Then make a new terminal and start your React app

  npm start

Documentation

For making an input to the REST API you will type in the browser

    http://localhost:3333/api/fibonacci/{Inputnumber}

And then, you will need to reload the React App to see the input and result from API.