Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mr-sunglasses/number-converter
https://github.com/mr-sunglasses/number-converter
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mr-sunglasses/number-converter
- Owner: Mr-Sunglasses
- License: mit
- Created: 2023-03-24T01:31:23.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-24T01:32:00.000Z (almost 2 years ago)
- Last Synced: 2024-05-02T10:24:18.960Z (8 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Roman To Decimal Converter
A simple REST API to Convert Roman Numeral to an Decimal Value
[![Go](https://github.com/Mr-Sunglasses/number-converter/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/Mr-Sunglasses/number-converter/actions/workflows/go.yml)
[![codecov](https://codecov.io/gh/Mr-Sunglasses/number-converter/branch/main/graph/badge.svg?token=MK95H1VJVL)](https://codecov.io/gh/Mr-Sunglasses/number-converter)---
## End Points
1. **POST**: `127.0.0.1:8080/roman`
Post Body
```
{"roman": "MCMXCIV"}
```Response
```
{"integer":1994,"roman":"MCMXCIV"}
```## Installation
1. Clone the repository
```bash
git clone https://github.com/Mr-Sunglasses/number-converter
cd roman-to-no-api
```2. Install dependencies
```bash
go get ./...
```3. Run Tests
```bash
go test ./... -v -coverpkg=./... -coverprofile=coverage.out
go tool cover -html=coverage.out
```4. Run Gin Development server
```bash
go run main.go
```## License
Copyright © 2023 [Kanishk Pachauri](https://github.com/Mr-Sunglasses).
This project is [MIT](https://github.com/Mr-Sunglasses/number-converter/blob/master/LICENSE) licensed.