An open API service indexing awesome lists of open source software.

https://github.com/julekgwa/url-shortener

URL shortener application that harnesses the power of Bun, Elysia, Turso, and HTMX.
https://github.com/julekgwa/url-shortener

bun elysiajs htmx turso typescript

Last synced: 7 months ago
JSON representation

URL shortener application that harnesses the power of Bun, Elysia, Turso, and HTMX.

Awesome Lists containing this project

README

          

Article: https://quicktuts.online/url-shortener

# BETH Stack

![beth](beth-stack.png)

## Getting started

Create .env file

```sh
touch .env
```

```sh
DB_URL=
DB_TOKEN=
```

## Create Turso db

```sh
turso db create bunshortly
```

Get the db url

```sh
turso db show bunshortly
```

Get the db token

```sh
turso db tokens create bunshortly
```

Update the ```.env``` file with the token and url from the above commands

## Run the application
To start the development server run:
```bash
bun run dev
```

Open http://localhost:3000/ with your browser to see the result.