Skip to content

krisnaajiep/java-unit-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Unit Converter

Simple unit converter web app built with HTML and Java.

Table of Contents

General Information

Java Unit Converter is a simple web application that can convert between different units of measurement. It can convert units of length, weight, volume, area, temperature, and more. The user can input a value and select the units to convert from and to. The application will then display the converted value. This project is designed to explore and practice logic building and working with the HTML and server in Java.

Technologies Used

  • HTML
  • CSS
  • Java 21.0.6 LTS
  • Maven 3.9.9
  • Jakarta Servlet 6.1.0

Features

This app can convert between different units of measurement for length, weight, and temperature. Supported conversions include:

  • Length:

    • millimeter (mm)
    • centimeter (cm)
    • meter (m)
    • kilometer (km)
    • inch (in)
    • foot (ft)
    • yard (yd)
    • mile (mi)
  • Weight:

    • milligram (mg)
    • gram (g)
    • kilogram (kg)
    • ounce (oz)
    • pound (lb)
  • Temperature:

    • Celsius (°C)
    • Fahrenheit (°F)
    • Kelvin (K)

Setup

To run this web app, you’ll need:

  • Java: Version 21 or higher
  • Maven: Version 3.x
  • Apache Tomcat: Version 11.0.0-M20

How to install:

  1. Clone the repository

    git clone https://github.com/krisnaajiep/java-unit-converter.git
  2. Change the current working directory

    cd java-unit-converter
  3. Build the project

    mvn clean package
  4. Copy the WAR file from the target/ directory to the webapps folder in your Apache Tomcat directory

    cp target/java-unit-converter-1.0-SNAPSHOT.war path/to/tomcat/webapps/unit-converter.war 
  5. Run the Apache Tomcat and access the URL

    http://localhost:8080/unit-converter

Usage

  1. Select one of the units of measurement in the navigation menu.

    select-units-of-measurement

  2. Input a value to convert.

    input-value-to-convert

  3. Select the units to convert from.

    select-units-to-convert-from

  4. Select the units to convert to.

    select-units-to-convert-to

  5. Select the Convert button.

    select-convert-button

  6. View the converted value.

    view-the-converted-value

Project Status

Project is: complete.

Acknowledgements

This project was inspired by roadmap.sh.

License

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

About

Simple web app built with HTML and Java that can convert between different units of measurement.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published