Skip to content

Example of the design pattern strategy applied to the calculation the factorial of a given number.

Notifications You must be signed in to change notification settings

rogermedico/design-pattern-strategy

Repository files navigation

Design Pattern: Strategy

This project is an example of the design pattern strategy applied to the calculation the factorial of a given number.

Requirements

Node.js >= 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 as a JS framework.
  • Uses Bootstrap 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/

About

Example of the design pattern strategy applied to the calculation the factorial of a given number.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages