subbu-calculator

Subburathinam Calculator

A modern, smart calculator project built with Java Spring Boot backend and a responsive HTML/CSS/JavaScript frontend.


Features


Live Demo


Technologies Used


Getting Started

Prerequisites

Running Backend Locally

  1. Clone the repo
    git clone https://github.com/subburathinam-M/subbu-calculator.git
    cd subbu-calculator
    

    Build and Run Spring Boot Backend

./mvnw clean package
java -jar target/WebCalculator-0.0.1-SNAPSHOT.jar
Backend runs on default port 8080

API endpoint example: http://localhost:8080/api/calculate?num1=5&num2=10&operation=add

Running Frontend Locally

Open the index.html file in your browser.

Make sure the API endpoint in your JavaScript points to your local backend URL (http://localhost:8080/api/calculate).

Deployment Frontend Deploy frontend to GitHub Pages by hosting your static files in the docs/ folder or root branch.

Backend Deploy Spring Boot backend to Heroku, AWS, or any cloud provider.

Update frontend API URLs to your deployed backend URL.

images

Calculator UI Calculator UI Calculator UI

Usage

Enter numbers and select the operation.

Click Calculate to see the result.

The history of calculations is shown below.

Use Clear All to reset the inputs and result.

Use Clear History to clear previous calculations.

Contributing Contributions are welcome! Please open issues or pull requests to improve the project.

License

MIT License © Subburathinam M

Contact

GitHub: https://github.com/subburathinam-M

Email: your-email@example.com