A URL shortener built on top of Deno Deploy and FaunaDB.
Visit https://yaus.deno.dev
for a live version.
Instructions to deploy the application on your Deno Deploy account.
TODO(@satyarohith): add deploy instructions.
We use FaunaDB to store our application data. Follow the below steps to create a database and obtain a secret to access the DB from your Deno Deploy application.
Create a new database:
- Go to https://dashboard.fauna.com (login if required) and click on New Database
- Fill the Database Name field and click on Save.
- Click on GraphQL section visible on the left sidebar.
- Download
schema.gql
to your local machine and import the file.
Generate a secret to access the database:
- Click on Security section and click on New Key.
- Select Server role and click on Save. Copy the secret.
You can run the application on your local machine using
deployctl
.
FAUNA_SECRET=<token> deployctl run --libs=ns,fetchevent https://raw.githubusercontent.com/denoland/deploy_examples/main/yaus/mod.tsx
Replace <token>
with your FaunaDB secret.