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
- 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
- Golang
- Echo (web server)
- HTMX
- SQlite
This server has been tested and verified for use only on Linux. You may run into unexpected issues running it on anything else.
- Make a copy of config_template.yaml and rename it to config.yaml
- Generate tls certificates, then modify config.yaml to have the paths of your certificate and key files
- You can use standard let's encrypt certificates for this: https://levelup.gitconnected.com/generate-ssl-certificate-with-lets-encrypt-a8e26cf0a378
- 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
- Generate a strong, random password to use as the cookie secret. Place this in config.yaml
- Run make to generate an executable
- Run the server
sudo ./server