Skip to content

This is a small demo project for showcasing the power of HTMX together with Bun.

Notifications You must be signed in to change notification settings

pawcoding/short-link

Repository files navigation

Short Link

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.

What is short link?

Screenshot

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.

How to start the application

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

About

This is a small demo project for showcasing the power of HTMX together with Bun.

Topics

Resources

Stars

Watchers

Forks