FTR Coding Challenge - Fibonacci
Node v14.17.4 (best to use NVM to manage node version)
Yarn
Typescript
Once you have the correct version of node running, run yarn install
in the root dir to install dependanices.
Enter the root
directory, install the NPM packages and start the program using the yarn
scripts:
yarn run start
This will launch the app in your terminal
-
In order to implement a new UI in this application, for example a web app. The core logic can be retained as the processing of user input is contained within
src/index.ts
in thegetUserInput
andprocessInput
functions. A frontend UI would need to be implemented as the application is currently a console app. However the logic contained within the aforementioned functions could be utilised to handle user input, whether that be completely handled in the front end or if a backend was to be implemented this logic could be abstracted into API functionality. -
In order to make this application production ready:
- Tests need to be written
- More user friendly interface
- Repeatable deployment method is required. i.e Docker image
- CI/CD pipeline, ideally with image produced at the end of pipeline execution
-
Very enjoyable coding challenge. It was challenging enough without unnecessary complexities. An improvement I would suggest is an extension activity of creating a docker-compose.yml to test knowledge of docker.