Fork of https://github.com/aeolyus/gull with basic changes
Find a file
2023-10-15 13:23:11 +02:00
.github/workflows [github] Stup docker buildx before building image 2023-04-26 21:15:35 -07:00
handlers allow multiple shortened links to a single URL 2023-10-15 13:23:05 +02:00
public self-host google fonts; remove fontawesome dep 2023-10-15 13:23:11 +02:00
utils Comply with golint 2020-05-29 10:58:11 -07:00
.gitignore [public] Add js for interactive frontend and some css 2020-05-14 14:23:37 -07:00
docker-compose.yml Update 'docker-compose.yml' 2020-08-11 00:34:52 +02:00
Dockerfile [docker] Refactor to cache for faster builds 2023-04-26 21:09:16 -07:00
go.mod [utils/handlers] Add regex URL validation and remove govalidator 2020-05-15 16:35:01 -07:00
go.sum [utils/handlers] Add regex URL validation and remove govalidator 2020-05-15 16:35:01 -07:00
LICENSE [license] Update license to MPL-2.0 2020-05-13 13:46:40 -07:00
Makefile [make] Add buildx prefix back to docker build for image 2023-04-26 21:19:24 -07:00
README.md Merge github aeolyus/master 2023-10-15 12:51:29 +02:00
server.go Update 'server.go' 2020-08-11 00:30:00 +02:00

gull

A simple URL shortener made in Go screenshot

Usage

Docker

Optionally, build the container. Otherwise, the public one will be pulled down.

make image

Run the container.

docker run \
    -d \
    --name gull \
    -v /gull-data/:/data/ \
    -p 8081:8081 \
    ghcr.io/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
make run

This will create a directory ./gull/data where persistent data will be stored.

Acknowledgements

Inspired by mnml!