This is a simple calculator application built using Webpack and JavaScript. The calculator performs basic arithmetic operations such as addition, subtraction, multiplication, and division. It has a user-friendly interface with a display area for operations and results, styled using CSS.
- HTML: Provides the structure of the calculator.
- CSS: Styles the calculator, including colors for buttons and displays.
- JavaScript: Implements the calculator logic, handling user input and performing calculations.
- Node.js (version 14 or later)
- npm (Node package manager)
- Webpack (for building the project)
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Install dependencies:
npm install
-
Build the project:
npm run build
-
Serve the project:
npm run serve
-
Open the app in your browser: Go to
http://localhost:8080
-
Build the Docker image:
docker build -t simple-calculator .
-
Run the Docker container:
docker run -p 8080:8080 simple-calculator
-
Open the app in your browser: Go to
http://localhost:8080