Tiny api for shorting urls.
Clone from github
git clone https://io112/tiny-url-shorter
cd tiny-url-shorter
Run project
go build cmd\url-shorter\main.go
go run cmd\url-shorter\main.go
Change this environment variables to modify configuration
Variable | Description | Default |
---|---|---|
PORT | webserver port | 8080 |
HOST | webserver hostname without port | http://localhost |
DB_NAME | name of sqlite database | urldb.db |