Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vergissberlin/converter
https://github.com/vergissberlin/converter
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vergissberlin/converter
- Owner: vergissberlin
- Created: 2023-06-19T13:15:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-15T05:38:44.000Z (11 months ago)
- Last Synced: 2024-10-10T19:41:23.199Z (27 days ago)
- Language: Go
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
title: Gonverter
description: A simple web service to convert between different file formats
tags:
+ json
+ golang
+ protobuf
---# Gonverter
This simple mirco service is used to convert data formats.
## ✨ Features
* json to protobuf
## 💁♀️ How to use
* Connect to your Railway project `railway link`
* Start the development server `railway run go run app/api/*.go`## 📝 Notes
Send a request to the service with the following format:
```bash
curl --location 'http://YOURDOMAIN.railway.com/json2protobuf' \ # replace with your railway url
--header 'Content-Type: application/json' \
--data './tests/fixtures/person.json'
```## 🛠️ Development
### Run the service
```bash
docker build -t gonverter .
docker run -d -p 8080:8080 gonverter
```### Send a request
```bash
curl --location 'http://0.0.0.0:8080/json2protobuf' \
--header 'Content-Type: application/json' \
--data './tests/fixtures/person.json'
```#### Response
`Content-Type: application/octet-stream`
`Body: test [email protected]`
## Know how
* Read