An open API service indexing awesome lists of open source software.

https://github.com/gme-sh/gme.sh-api

long url go brr | Backend
https://github.com/gme-sh/gme.sh-api

backend backend-api backend-services rest-api url-shortener

Last synced: 29 days ago
JSON representation

long url go brr | Backend

Awesome Lists containing this project

README

          

[![Go Report Card](https://goreportcard.com/badge/github.com/gme-sh/gme.sh-api)](https://goreportcard.com/report/github.com/gme-sh/gme.sh-api)
![Build Go](https://github.com/gme-sh/gme.sh-api/workflows/Build%20Go/badge.svg)
![Build Docker](https://github.com/gme-sh/gme.sh-api/workflows/Build%20Docker/badge.svg)

# GMEshortener
$GME go brrrrr

> Allan, please add details!

## Run
### Docker
```bash
$ docker build . -t gmesh:latest
$ docker run -it --rm --name gmesh-api -p 80:80 gmesh:latest
```

#### BBolt, non-persistent
```bash
$ docker run -it --rm --name gmesh-api -e "GME_PERSISTENT_BACKEND=bbolt" -p 80:80 gmesh:latest
```

#### BBolt, persistent
```bash
$ docker run -it --rm --name gmesh-api -e "GME_PERSISTENT_BACKEND=bbolt" -v $PWD/data:/data -p 80:80 gmesh:latest
```

### Docker-Compose
Copy `docker-compose-{preferred-option}.yml` and `docker-compose.env` from `docker/`

**Options:**
* redis-mongo
* redis
* scratch

```bash
$ cp docker/docker-compose-redis-mongo.yml ./docker-compose.yml
$ cp docker/docker-compose.env ./
```

Build
```bash
$ docker-compose build
```

Start it
```bash
$ docker-compose up [-d]
```

## Shortcut (iOS) shortcut-logo
It is also very easy to shorten URLs via shortcuts on iOS. You can find a ready shortcut version here:
> https://www.icloud.com/shortcuts/8ff6f9987e084ce29b2c37dacba236e8

* Either the shortcut can be opened manually, it will then ask for the long URL, and then the shortened URL will be saved to the clipboard
* or when a URL is shared, "gme.sh" now appears in the share menu