Skip to content

This is a simple calculator web application built using Spring Boot and Spring Tool Suite 4 (STS4). The application allows users to perform basic arithmetic operations (➕ Addition, ➖ Subtraction, ✖️ Multiplication, and ➗ Division) through a user-friendly web interface.

Notifications You must be signed in to change notification settings

Rohitswami16/Simple-Calculator-SpringBoot-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧮 Simple Calculator - Spring Boot Application

🚀 Overview

This is a simple calculator web application built using Spring Boot and Spring Tool Suite 4 (STS4). The application allows users to perform basic arithmetic operations (➕ Addition, ➖ Subtraction, ✖️ Multiplication, and ➗ Division) through a user-friendly web interface.

✨ Features

  • ✅ Perform basic arithmetic operations: Addition, Subtraction, Multiplication, and Division.
  • 🎨 User-friendly HTML/CSS front-end with a responsive design.
  • ⚙️ Backend implementation using Spring Boot MVC architecture.
  • 💡 Lightweight and easy to run on localhost.

🛠 Tech Stack

  • Backend: Spring Boot, Spring MVC
  • Frontend: HTML, CSS
  • Development Tools: Spring Tool Suite 4 (STS4)

📁 Project Structure

├── src/main/java/com/example/demo
│   ├── CalculatorApplication.java     # Main Spring Boot Application
│   ├── CalciCalculator.java          # Controller handling requests
│   ├── CalciService.java             # Service for arithmetic operations
│
├── src/main/resources/templates
│   ├── calci.html                    # Calculator UI
│   ├── resultpage.html                # Result display page
│
├── pom.xml                            # Maven dependencies
└── README.md                          # Project Documentation

🔧 Installation and Setup

📌 Prerequisites

Make sure you have the following installed:

  • ☕ Java JDK 8 or later
  • 🛠 Spring Tool Suite 4 (STS4) or any IDE that supports Spring Boot
  • 🏗️ Maven

📜 Steps to Run the Application

  1. Clone the Repository:
    git clone https://github.com/YOUR_GITHUB_USERNAME/SimpleCalculator.git
    cd SimpleCalculator
  2. Open the project in STS4 or any IDE.
  3. Run the Application:
    mvn spring-boot:run
  4. Access the Application:

🖥 Usage

  1. 🔢 Enter two numbers in the input fields.
  2. ✏️ Click on an operation (ADD, SUB, MUL, DIV).
  3. 📊 The result will be displayed on the result page.

📸 Screenshots


ADD

DIV

Division by zero is not allowed

📜 License

This project is licensed under the MIT License.

👨‍💻 Author

[Rohit Swami] - Developer of Simple Calculator

About

This is a simple calculator web application built using Spring Boot and Spring Tool Suite 4 (STS4). The application allows users to perform basic arithmetic operations (➕ Addition, ➖ Subtraction, ✖️ Multiplication, and ➗ Division) through a user-friendly web interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published