Skip to content

Repository files navigation

Unit Converter

A simple web app built with Flask that converts between units of length, weight, and temperature.

Project made for: https://roadmap.sh/projects/unit-converter

Local Installation

macOS/Linux

git clone https://github.com/NicoCodesCode/uniteto.git
cd uniteto
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Windows (PowerShell)

git clone https://github.com/NicoCodesCode/uniteto.git
cd uniteto
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt

Running Locally

flask run

The app will be available at http://localhost:5000.

Features

  • Length conversions: inch, foot, yard, mile, millimeter, centimeter, meter, kilometer
  • Weight conversions: ounce, pound, US ton, milligram, gram, kilogram, tonne
  • Temperature conversions: Fahrenheit, Celsius, Kelvin

Usage

Navigate to any of the three converters using the links in the app:

  • /length — convert length units
  • /weight — convert weight units
  • /temperature — convert temperature units

Select the unit to convert from, the unit to convert to, enter a value, and hit convert. Large or very small results are displayed in scientific notation automatically.

Running Tests

pytest

About

A Flask web app for converting between units of length, weight, and temperature.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages