https://github.com/rogermedico/design-pattern-strategy
Example of the design pattern strategy applied to the calculation the factorial of a given number.
https://github.com/rogermedico/design-pattern-strategy
angular angular-material bootstrap design-patterns
Last synced: 3 months ago
JSON representation
Example of the design pattern strategy applied to the calculation the factorial of a given number.
- Host: GitHub
- URL: https://github.com/rogermedico/design-pattern-strategy
- Owner: rogermedico
- Created: 2021-01-17T11:02:14.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-21T12:09:09.000Z (over 5 years ago)
- Last Synced: 2025-03-27T18:24:08.199Z (over 1 year ago)
- Topics: angular, angular-material, bootstrap, design-patterns
- Language: TypeScript
- Homepage: https://sleepy-kare-3d5f8a.netlify.app/
- Size: 142 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Design Pattern: Strategy
This project is an example of the [design pattern strategy](https://en.wikipedia.org/wiki/Strategy_pattern) applied to the calculation the factorial of a given number.
## Requirements
[Node.js](http://nodejs.org/) >= 10.15.x
## Getting started
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`.
## Features
* Uses [Angular](https://angular.io/) as a JS framework.
* Uses [Bootstrap](https://getbootstrap.com/) as a CSS framework.
* NPM scripts for fast development and production build (see Commands below).
### Commands
| 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. |
## Live example
[https://sleepy-kare-3d5f8a.netlify.app/](https://sleepy-kare-3d5f8a.netlify.app/)