linkredir-rc1 URL Shortener
linkredir-rc1 self hostable, feature rich, minimalistic and open source URL shortener. Built with Next.js, Drizzle, NextAuth and Postgres.
Built on top of Onset a Next.js starter that comes with step-by-step instructions to understand how everything works, easy for both beginners and experts alike and giving you the confidence to customize it to your needs. Built with Next.js 14, Drizzle (Postgres), NextAuth/Auth.js.
- Next.js – React framework for building performant apps with the best developer experience
- Auth.js – Handle user authentication with ease with providers like Google, Twitter, GitHub, etc.
- Drizzle – Typescript-first ORM for Node.js
- Vercel – Easily preview & deploy changes with git
- Neon – The fully managed serverless Postgres with a generous free tier
Clone & create this repo locally with the following command:
Note: You can use
npx
orpnpx
/pnpm dlx
as well
pnpm dlx create-next-app linkredir --example "https://github.com/riqalter/linkredir-rc1"
- Copy
.env.example
to.env.local
and update the variables.
cp .env.example .env.local
- Install dependencies using bun:
pnpm i
- Start the development server:
pnpm dev