Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spences10/sveltekit-short-urls
Short URLs with SvelteKit
https://github.com/spences10/sveltekit-short-urls
short-url short-urls svelte sveltekit vercel
Last synced: 11 days ago
JSON representation
Short URLs with SvelteKit
- Host: GitHub
- URL: https://github.com/spences10/sveltekit-short-urls
- Owner: spences10
- Created: 2022-01-29T18:58:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T09:49:57.000Z (7 months ago)
- Last Synced: 2024-04-13T21:09:32.720Z (7 months ago)
- Topics: short-url, short-urls, svelte, sveltekit, vercel
- Language: TypeScript
- Homepage: https://sveltekit-short-urls.vercel.app/links
- Size: 1.18 MB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SvelteKit short URLs
A simple SvelteKit endpoint to redirect URL pathname to specified
destination.Uses Upstash Redis for storing links and details
## Usage
**Adding a Hash**: In the Web CLI, you'd type the following and press
Enter:```bash
HSET short_url: destination "" description "" visible "true | false"
```**Updating a Field in Hash**: To update a specific field,
type:```bash
HSET short_url: "" ""
```**Deleting a Hash**: To delete a hash, enter:
```bash
DEL short_url:
```**Viewing All Keys**: To see all keys, you'd type:
```bash
KEYS *
```**Viewing a Hash**: To get all fields and values of a specific hash,
type:```bash
HGETALL short_url:
```