rak3rman / rakerman-linker

A scalable url shortener built for Cloudflare Workers + KV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nuxt 3 Frontend Starter

Look at the nuxt 3 documentation to learn more.

Nuxt 3

Setup

Make sure to install the dependencies:

npm install

Development Server

Start the development server on http://localhost:3000

npm run dev

Production

Build the application for production:

npm run build

Locally preview production build:

npm run preview

Checkout the deployment documentation for more information.

Wrangler

Testing locally

You can use miniflare, a local Cloudflare Workers development server, to test your app locally:

NITRO_PRESET=cloudflare yarn build
npx miniflare .output/server/index.mjs --site .output/public

Deploy from your local machine using wrangler

Install wrangler and login to your Cloudflare account:

npm i @cloudflare/wrangler -g
wrangler login

Generate website with cloudflare preset:

NITRO_PRESET=cloudflare yarn build

You can preview locally:

wrangler dev

Publish:

wrangler publish

Deploy within CI/CD using GitHub Actions

Create a token according to the wrangler action docs and set CF_API_TOKEN in your repository config on GitHub.

About

A scalable url shortener built for Cloudflare Workers + KV


Languages

Language:Vue 87.3%Language:JavaScript 6.0%Language:TypeScript 5.5%Language:CSS 1.2%