Frontend application for a URL shortener built with Next.js, Tailwind CSS, and Supabase. This project provides a modern and responsive interface for users to authenticate, create, and manage shortened links, with full support for local development using Supabase via pnpx.
- Next.js (App Router)
- TypeScript
- Tailwind CSS
- Supabase
- pnpm
- User authentication with Supabase
- Create shortened URLs
- List user links
- Edit and delete links
- Responsive UI
- Visual feedback for user actions
- Integration with backend/API
- Local database setup with Supabase migrations
Make sure you have the following installed:
- Node.js (latest stable)
- pnpm
- Docker
git clone https://github.com/ScriptCamilo/url-shortener-client.git
cd url-shortener-client
pnpm installCreate a .env.local file:
NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_local_anon_key
NEXT_PUBLIC_API_URL=http://localhost:8080pnpx supabase start
pnpx supabase db resetAfter starting, copy the API URL and anon key to .env.local.
pnpm devpnpm dev
pnpm build
pnpm start
pnpm lintpnpm build
pnpm startDeploy on Vercel with proper environment variables configured.
- Ensure Docker is running before
pnpx supabase start - Re-run migrations if needed:
pnpx supabase db reset