Invite others to view and contribute to your collection while ensuring that only authorized users have access to your valuable digital content.
This templates utilizes Unkey's API to secure your media library with time-sensitive API keys. Invite others to view and contribute to your collection while ensuring that only authorized users have access to your valuable digital content.
hubBlob()
create_key
read_key
encrypt_key
decrypt_key
This step is required only once for the first user. You can generate additional keys for other users from within the app.
Meta
section add this JSON:
1{ "role": "contributor" }
pnpm install
or your favorite package manager.pnpm dev
or your favorite package manager.If you don't have pnpm installed, run:
corepack enable pnpm
Create a .env
file in the root directory and populate it with the following environment variables:
1NUXT_UNKEY_ROOT_KEY=your-unkey-root-key2NUXT_UNKEY_API_ID=your-unkey-api-id
Ensure you replace your-unkey-*
with your actual Unkey credentials.
1pnpm dev
Once you deployed your project, you can connect to your remote database locally running:
1pnpm dev --remote
You can deploy this project on your Cloudflare account for free and with zero configuration using NuxtHub.
1npx nuxthub deploy
It's also possible to leverage Cloudflare Pages CI for deploying, learn more about the different options on https://hub.nuxt.com/docs/getting-started/deploy
Learn more about remote storage on https://hub.nuxt.com/docs/getting-started/remote-storage
2500 verifications and 100K successful rateโlimited requests per month. No CC required.