Feelantera URL Shortener
This is our super simple URL shortener. Powered by Supabase and Deno, and Oak for the http framework. You can deploy this project to Deno Deploy or any container hosting such as Fly.io or Railway.
🏁
Quick Start
Prerequisites
At least you will need Deno >=1.24
and optionally Docker >= 20.10
for building the container.
Generate Secret Key
Before you continue, you need to create .env
file (you can duplicate .env.example
) and fill the application secret key
with some random string. To generate a secret key, use the following command:
openssl rand -base64 500 | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
Up and Running
deno task dev # run in development
deno task start # run in production
Application will run at http://localhost:8000
Build Container
# Build the container
DOCKER_BUILDKIT=1 docker build -t fltr-link:latest -t fltr-link:v0.1.0 .
# Running the container
docker run --rm -d -p 8000:8000 --name fltr-link --env-file .env fltr-link:latest
# Stopping the container
docker stop fltr-link
🚀
Deployment
Visit Deno Deploy docs for more information.
🧑🏻💻 Development
This project uses TypeScript for type checking, deno_lint for linting, and Prettier for auto-formatting in this project. It's recommended to get TypeScript set up for your editor and install an editor plugin (like the VSCode Prettier plugin) to get auto-formatting on saving and get a really great in-editor experience with type checking and auto-complete.
Maintainer
Currently, Aris Ripandi (@riipandi) is the only maintainer.
License
This project is open-sourced software licensed under the Apache License 2.0.
Copyrights in this project are retained by their contributors.
See the license file for more information.