Fork of https://github.com/aeolyus/gull with basic changes
Find a file
2020-08-11 00:31:52 +02:00
handlers remove the /all functionality completely 2020-08-11 00:31:52 +02:00
public Update 'public/index.html' 2020-08-10 23:51:44 +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 docker-compose persistent data over rebuild 2020-06-09 09:37:54 +02:00
Dockerfile [docker] Utilize multistage building to minimize docker image 2020-05-30 14:12:59 -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
README.md Update 'README.md' 2020-06-09 09:35:23 +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

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!