This project is an example of the design pattern strategy applied to the calculation the factorial of a given number.
Node.js >= 10.15.x
Clone this repository with git clone
, or download a .zip file using the top right green button.
Using the Terminal, navigate to the project folder and run npm install
.
- Uses Angular as a JS framework.
- Uses Bootstrap as a CSS framework.
- NPM scripts for fast development and production build (see Commands below).
Command | Description |
---|---|
npm run start |
Runs a local web server for development and opens the browser to display it. Automatically compiles styles and scripts whenever a file in src/ is changed, and live reloads the browser. This is what must be run on the development stage. |
npm run build |
Compiles, minifies and optimizes the project. Use the --prod flag for a production build. These files are the ones that must be used to deploy on production. |