Skip to content

A simple, efficient URL shortener using Nuxt, TypeScript, and Cloudflare Pages with D1 Database integration.

License

Notifications You must be signed in to change notification settings

cdLab996/cf-examples-nuxt

Repository files navigation

cf-examples-nuxt

A simple and efficient full-stack URL shortener built with Nuxt, TypeScript, and Cloudflare Pages, seamlessly integrating with Cloudflare D1 Database.

Getting Started

First, set up your .env file by copying the example:

cd cf-examples-nuxt
cp .env.example .env

Then, run the development server:

Recommended versions:

  • node ^20.16.0
  • pnpm ^9.7.1
pnpm install

pnpm run db:generate
pnpm run db:up
pnpm run db:migrate

pnpm run dev

# dev cf preview
pnpm run dev

Open http://localhost:3000 with your browser to see the result.

REST API URL:

  • api: /server

About

A simple, efficient URL shortener using Nuxt, TypeScript, and Cloudflare Pages with D1 Database integration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages