https://github.com/kernelerr/denojump
A simple URL shorten tool based on Deno Deploy and Fauna.
https://github.com/kernelerr/denojump
Last synced: about 1 year ago
JSON representation
A simple URL shorten tool based on Deno Deploy and Fauna.
- Host: GitHub
- URL: https://github.com/kernelerr/denojump
- Owner: KernelErr
- License: apache-2.0
- Created: 2022-04-21T04:24:59.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-16T06:41:28.000Z (about 4 years ago)
- Last Synced: 2025-03-09T03:07:33.217Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Denojump
A simple URL shorten tool based on [Deno Deploy](https://deno.com/deploy) and [Fauna](https://fauna.com/).
## Usage
1. Import scheme in Fauna.
2. Create some short link like(source should begin with `/`):
```
mutation {
createJump(data: {source: "/blog", target: "https://www.lirui.tech"}) {
source
target
}
}
```
3. Set `FAUNA_SECRET`(Your Fauna API Key) environment variable.
3. Deploy the `fauna.ts` to Deno Deploy.
4. Add your custom domain(Optional).