2020-05-12 08:30:45 +02:00
|
|
|
# gull
|
|
|
|
A simple URL shortener made in Go
|
|
|
|
|
|
|
|
## Usage
|
2020-05-13 08:09:58 +02:00
|
|
|
### Docker
|
|
|
|
Pull the image and run.
|
|
|
|
```
|
|
|
|
docker run -d --name gull -v /gull-data/:/app/data/ -p 8081:8081 aeolyus/gull:latest
|
|
|
|
```
|
|
|
|
This will preserve any persistent data under `/gull-data/`. Change this as needed.
|
|
|
|
|
|
|
|
### From Source
|
2020-05-12 08:30:45 +02:00
|
|
|
```
|
2020-05-13 08:09:58 +02:00
|
|
|
git clone https://github.com/aeolyus/gull.git
|
|
|
|
cd ./gull
|
|
|
|
go get -d -v ./...
|
2020-05-12 08:30:45 +02:00
|
|
|
go run server.go
|
|
|
|
```
|
2020-05-13 08:09:58 +02:00
|
|
|
This will create a directory `./gull/data` where persistent data will be stored.
|
2020-05-13 21:20:16 +02:00
|
|
|
|
|
|
|
## Acknowledgements
|
|
|
|
Inspired by [mnml](https://github.com/liyasthomas/mnmlurl/)!
|