Fork of https://github.com/aeolyus/gull with basic changes
handlers | ||
public | ||
utils | ||
.gitignore | ||
docker-compose.yml | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
LICENSE | ||
README.md | ||
server.go |
gull
A simple URL shortener made in Go
Usage
Docker
Pull the image and run.
docker run -d --name gull -v /gull-data/:/data/ -p 8081:8081 aeolyus/gull:latest
This will preserve any persistent data under /gull-data/
. Change this as needed.
docker-compose
Build the image from this repository and run
docker-compose up -d
This will open port 8081 and preserve data in ./gull-data
.
From Source
git clone https://github.com/aeolyus/gull.git
cd ./gull
go get -d -v ./...
go run server.go
This will create a directory ./gull/data
where persistent data will be stored.
Acknowledgements
Inspired by mnml!