This project was developed to support the web application the-star-wars-api. Do you like Star Wars? In this project ous calculated the necessary pitstops number for a starship run a determinate number of MGLT. (MGLT is a unit of measurement in the space).
That calcule was been done considering the attributes of starship: MGLT/hours and consumable (fuel capacity).
I developed in Node.js a API that receive all starships, calculate the stops and return. This API is avaliable on Heroku in the link: http://starwars-starships.herokuapp.com/stops/:number_mglt.
First, get the clone of this repository. After, in this folder, install packages:
To run the project you can execute: