Skip to content

csprl1/TinyLink

Repository files navigation

TinyLink

TinyLink — a minimal URL shortener built with Next.js (App Router), Prisma, Neon Postgres, and Tailwind CSS.
Implements short-code creation, redirects with click-tracking, per-link stats, and a small dashboard UI.

This repository is implemented as a take-home assignment (specification included). See original assignment: :contentReference[oaicite:1]{index=1}


Live Deployment (Vercel)

Live App: 👉 https://tiny-link-ebon.vercel.app


Features

  • Create short links (custom code optional, codes must match [A-Za-z0-9]{6,8})
  • Redirect /:code → 302 to original URL and increment click count + update lastClicked
  • Dashboard / listing all links
  • Stats page /code/:code
  • Delete a link (makes /:code return 404)
  • Health endpoint: GET /healthz200

Quickstart (local)

Prerequisites

  • Node.js 18+ (LTS) or Node 20+
  • npm (or pnpm)
  • A Postgres-compatible database (Neon recommended)

1. Clone

git clone <your-repo-url>
cd tinylink

About

A full-stack URL shortener using Next.js App Router, API Route Handlers, Prisma ORM, and Neon. Supports short code generation, redirects, click analytics, deletion, and a modern Tailwind UI. Clean folder structure, typed server actions, and deploy-ready configuration for Vercel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors