Skip to content

A link shortener/bitly clone written with Go and HTMX

Notifications You must be signed in to change notification settings

vtallen/Go-Link-Shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-Link-Shortener


This project is a simple bitly clone that shortens URLs and counts how many times those URLS are accessed.

Live Demo: https://srt.vtallen.com

Features


  • Allows the user to created shorted links of any url
  • User accounts
    • Allows the tracking of the number of clicks on a URL
    • Allows the deletion of shortlinks created by a user
  • hCaptcha on all forms to ensure the webapp is resistant to bot form submissions

Technologies used


  • Golang
    • Echo (web server)
  • HTMX
  • SQlite

Setup and Usage


This server has been tested and verified for use only on Linux. You may run into unexpected issues running it on anything else.

  1. Make a copy of config_template.yaml and rename it to config.yaml
  2. Generate tls certificates, then modify config.yaml to have the paths of your certificate and key files
  3. Go to https://www.hcaptcha.com/
    • Create an account
    • Copy your secret key and place it in config.yaml
    • Create a site key and place it in config.yaml
  4. Generate a strong, random password to use as the cookie secret. Place this in config.yaml
  5. Run make to generate an executable
  6. Run the server sudo ./server

About

A link shortener/bitly clone written with Go and HTMX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages