An open API service indexing awesome lists of open source software.

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.

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/)