Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pawcoding/short-link
This is a small demo project for showcasing the power of HTMX together with Bun.
https://github.com/pawcoding/short-link
beth bun daisyui elysiajs htmx tailwind
Last synced: about 1 month ago
JSON representation
This is a small demo project for showcasing the power of HTMX together with Bun.
- Host: GitHub
- URL: https://github.com/pawcoding/short-link
- Owner: pawcoding
- Created: 2023-08-29T05:53:38.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-12T14:54:19.000Z (about 1 year ago)
- Last Synced: 2023-12-12T15:50:11.371Z (about 1 year ago)
- Topics: beth, bun, daisyui, elysiajs, htmx, tailwind
- Language: HTML
- Homepage:
- Size: 219 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://www.meetup.com/de-DE/front-end-wuerzburg/) as an introduction to HTMX.
To learn more about this project, you can read the [blog post](https://blog.pawcode.de/posts/introduction-to-htmx) I wrote about it after the talk.## What is short link?
![Screenshot](./short-link.png)
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](https://bun.sh/) installed. If not, you can do it by running:
```bash
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:
```bash
# Download project files
git clone [email protected]:pawcoding/short-link.git
cd short-link# Install dependencies
bun install
```To then run the application, just type:
```bash
# Start the application
bun run start# Or for automatic restarting
bun run dev
```