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.
- Host: GitHub
- URL: https://github.com/julekgwa/url-shortener
- Owner: julekgwa
- Created: 2023-10-01T16:10:14.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-03T07:22:10.000Z (about 2 years ago)
- Last Synced: 2024-04-18T06:16:03.557Z (over 1 year ago)
- Topics: bun, elysiajs, htmx, turso, typescript
- Language: HTML
- Homepage:
- Size: 72.3 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Article: https://quicktuts.online/url-shortener
# BETH Stack

## 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.