This is a simple web app for calculation the Nth number of the Fibonacci Sequence. It can be used in real time, reflecting the requests made by other users for an ease of access to results.
A demo can be found in my Github Pages
Stack | Link |
---|---|
Frontend | Angular.io |
Backend | Google Firebase |
Testing | Jasmine |
Testing UI | Karma |
Frontend wise, i decided to go with Angular since it is a very robust and easy to start up Framework. It provides everything you need for Frontend development and more. Pros are its learning curve, the architechtural standardization it comes with and the large ammount tools it provides for implementing functionality, making it excelent for big projects. This is also a con since it can be overwhelming for small projects and probably wont be using the 100% of its potential.
In the backend i chose Google Firebase mostly because it saves time when it comes to getting the persistence layer of an application up and running. It comes with a wide variety of useful tools and most of them have a free model subscription for testing and learning purposes. For this matter i think it was the best option and decided to use Firestore since it offers a very powerfull API for accessing the data and even subscribing to the changes made to it.
Did a bit of testing using the testing suite provided by Angular. Jasmine for the actual testing and Karma as the visualizer.
This project was generated with Angular CLI version 14.0.2.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.