A fun URL shortener built with Go, HTMX, Templ, TailwindCSS and PostgreSQL (GoTTH) stack. This url shortener also comes with browser extensions for chrome (or chrome based browsers) and firefox.
CREATE ROLE url_shortener WITH LOGIN PASSWORD 'url_shortener';
CREATE DATABASE url_shortener OWNER url_shortener;
CREATE EXTENSION pg_trgm;
docker compose up -d db
cp .env.example .env
Fill .env
with your database credentials.
make migrate STEPS=1 # number of steps
Build the application
make build-tailwind
make build-templ
make build
Run the application
./build/main
Build the application
docker build -t url-shortener .
Wait for docker to build the application and run it using:
docker compose up -d