Skip to content

edwardhorsey/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Url Shortener

A simple URL shortener app written in Go.

URLs are stored in a PostgreSQL database then the database IDs are Base32 enocoded and used as the "short urls".

Features

Technologies used:

Running the app

Install Go (I use version 1.21 but this will very likely run on earlier versions).

Start a PostgreSQL database (via Docker Compose) and copy the contents of .env.example to .env.

docker-compose up -d
cp .env.example .env

Start the app

go run main.go

# and you should see
successfully connected to database, starting HTTP server on ":8080"

Navigate to localhost:8080 🤏

Releases

No releases published

Packages

No packages published