A lightweight, self-hosted URL shortener service built with Go. This application allows users to create and manage short, easily shareable URLs that redirect to longer URLs. The service also includes periodic persistence to a CSV file for data durability.
git clone https://github.com/gabrielmajosi/url-shortener-go.git
cd url-shortener-go
cd frontend
npm install
npm run build
cp -r dist/* ../web/
cd ..
go build .
./url-shortener-go
The server will start on port 8080
by default.
Server Port: Update the serverAddr constant to change the listening port. Storage File: Modify the storeFile constant to use a different file for persistence.
This project is licensed under the GNU General Public License v3.0.
By using, modifying, or distributing this software, you agree to comply with the terms of the GPL. This license ensures that:
For the full license text, see the LICENSE file in this repository.