{"id":23532509,"url":"https://github.com/fhasnur/unit-converter","last_synced_at":"2025-05-14T16:19:16.318Z","repository":{"id":264654755,"uuid":"893987207","full_name":"fhasnur/unit-converter","owner":"fhasnur","description":"🔁 Unit Converter, simple web application that allows users to convert units such as length, weight, and temperature.","archived":false,"fork":false,"pushed_at":"2024-12-10T15:30:38.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T16:18:56.001Z","etag":null,"topics":["fiber","go","golang","mustache","webapp"],"latest_commit_sha":null,"homepage":"https://unit-converter.up.railway.app","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fhasnur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-25T14:54:52.000Z","updated_at":"2024-12-10T15:31:18.000Z","dependencies_parsed_at":"2024-11-25T16:19:21.300Z","dependency_job_id":"d9de839f-ac17-412e-b57f-274bb252d528","html_url":"https://github.com/fhasnur/unit-converter","commit_stats":null,"previous_names":["fhasnur/unit-converter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhasnur%2Funit-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhasnur%2Funit-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhasnur%2Funit-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhasnur%2Funit-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fhasnur","download_url":"https://codeload.github.com/fhasnur/unit-converter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254179900,"owners_count":22027884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fiber","go","golang","mustache","webapp"],"created_at":"2024-12-25T23:11:25.488Z","updated_at":"2025-05-14T16:19:16.277Z","avatar_url":"https://github.com/fhasnur.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unit Converter\n\n![Unit Converter Screenshot](assets/unit-converter.png)\n\n**Unit Converter** is a simple web application that allows users to convert units such as **length**, **weight**, and **temperature**. The app is built using [Go Fiber](https://gofiber.io/) as the web framework and [Mustache](https://mustache.github.io/) as the template engine. The sample solution for the [unit-converter](https://roadmap.sh/projects/unit-converter) challenge from [roadmap.sh](https://roadmap.sh/).\n\n\n## Features\n\n- **Length Conversion**: Millimeter, centimeter, meter, kilometer, inch, foot, yard, mile.\n- **Weight Conversion**: Milligram, gram, kilogram, ounce, pound.\n- **Temperature Conversion**: Celsius, Fahrenheit, Kelvin.\n- Simple and responsive user interface.\n- Retains results within their respective tabs without reloading the page.\n\n## Technologies Used\n\n- **Programming Language**: Go\n- **Web Framework**: Fiber\n- **Template Engine**: Mustache\n- **UI Interaction \u0026 Styling**: JS, CSS\n\n## Installation\n\nClone this repository to your local directory:\n```bash\ngit clone https://github.com/fhasnur/unit-converter.git\ncd unit-converter\n```\n\nInstall all required dependencies:\n```bash\ngo mod tidy\n```\n\nRun the application:\n```bash\ngo run main.go\n```\n\nOpen the application in your browser at:\n```bash\nhttp://localhost:3000\n```\n\n## Project Structure\n\n```bash\nunit-converter/\n├── assets/\n│   └── unit-converter.png    # Screenshot of the Unit Converter\n├── internal/\n│   ├── converter/            # Unit conversion logic\n│   │   ├── length.go\n│   │   ├── weight.go\n│   │   └── temperature.go\n│   ├── data/\n│   │   └── units.go          # Unit data for display\n│   └── handler/\n│       └── root.go           # Main page handler\n├── templates/\n│   └── index.mustache        # Main HTML template\n├── static/\n│   ├── style.css             # Styling\n│   └── script.js             # User interaction logic\n├── .env                      # Environment variables (for production)\n├── .env.example              # Example of environment variables\n├── .gitignore                # Files and directories to be ignored by Git\n├── Dockerfile                # Docker configuration\n├── railway.json              # Railway deployment configuration\n├── go.mod                    # Go module information\n├── go.sum                    # Dependency checksum\n├── main.go                   # Application entry point\n└── README.md                 # Project documentation\n```\n\n## Contribution\n\nContributions are welcome. To contribute, fork this repository, create a new branch, and submit a pull request. \n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffhasnur%2Funit-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffhasnur%2Funit-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffhasnur%2Funit-converter/lists"}