Skip to content

A simple calculator application (4 operations) built using Webpack, JavaScript and styled using CSS.

Notifications You must be signed in to change notification settings

marcam-sl/webpack-simple-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Calculator

High-Level Description

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.

Application Overview

  • 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.

Prerequisites

  • Node.js (version 14 or later)
  • npm (Node package manager)
  • Webpack (for building the project)

How to Build and Serve the Application

Directly on Your Local Machine

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-directory>
  2. Install dependencies:

    npm install
  3. Build the project:

    npm run build
  4. Serve the project:

    npm run serve
  5. Open the app in your browser: Go to http://localhost:8080

Using Docker

  1. Build the Docker image:

    docker build -t simple-calculator .
  2. Run the Docker container:

    docker run -p 8080:8080 simple-calculator
  3. Open the app in your browser: Go to http://localhost:8080

About

A simple calculator application (4 operations) built using Webpack, JavaScript and styled using CSS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published