Shorty is a free, open-source URL shortening service. Designed to be blazingly fast™.
You can deploy this project on Railway with just one click:
-
Clone the Repository
git clone https://github.com/ShiftSad/Shorty.git cd Shorty
-
Set Up PostgreSQL
Ensure you have a PostgreSQL database running. Then, set the DSN (Data Source Name) environment variable with your PostgreSQL connection URL.On Linux/macOS:
export DSN="postgresql://postgres:pa$$word@localhost:5432/postgres"
On Windows (PowerShell):
$env:DSN="postgresql://postgres:pa$$word@localhost:5432/postgres"
-
Run the Application
go run main.go
That's it! Your application should now be running locally. 🚀