This is a small demo project for showcasing the power of HTMX together with Bun. It was originally created for a talk of mine at FrankenJS Würzburg as an introduction to HTMX. To learn more about this project, you can read the blog post I wrote about it after the talk.
It is just a basic link shortener, with the ability to:
- Create new short links
- Use these short links to redirect to the original page
- List all generated links and their usage
- Delete old links
Please do not use this application in production as it has no security features built in and everyone can see and delete your links.
To run the application you first need to have Bun installed. If not, you can do it by running:
curl -fsSL https://bun.sh/install | bash
After you installed bun (and reloaded your .bashrc if necessary), you need to install the project and its dependencies by running:
# Download project files
git clone git@github.com:pawcoding/short-link.git
cd short-link
# Install dependencies
bun install
To then run the application, just type:
# Start the application
bun run start
# Or for automatic restarting
bun run dev