/totalizer-js

Simple JavaScript calculator to learn basic operator functions and run calculations on the front end.

Primary LanguagePHP

Totalizer JS

This repository contains a simple calculator web application built using PHP Laravel for the backend and JavaScript for writing calculation scripts on the frontend.

Features

  • Basic arithmetic operations: Addition, Subtraction, Multiplication, Division.
  • Responsive user interface.
  • Real-time calculation updates without page reloads.

Technologies Used

  • PHP Laravel: Used for backend server-side logic and routing.
  • JavaScript: Used for implementing calculation scripts on the client-side.
  • HTML/CSS: Used for structuring the frontend and styling the user interface.

Getting Started

To get a local copy up and running follow these simple steps:

  1. Clone the repository: git clone https://github.com/your-username/simple-calculator.git
  2. Navigate to the project directory: cd simple-calculator
  3. Install dependencies: composer install && npm install
  4. Start the development server: php artisan serve
  5. Open your web browser and visit http://localhost:8000 to view the application.

Usage

  • Enter numbers using the on-screen buttons.
  • Use the arithmetic operator buttons to perform calculations.
  • See the result displayed in real-time.

Contributing

Contributions are welcome! Please feel free to fork the repository and submit pull requests with your improvements.

License

This project is licensed under the MIT License - see the LICENSE file for details.