This is a URL shortener application built with Next.js, TypeScript and for validation Zod. All urls are saved in a Vercel Postgres database and the ui is using Shadcn with Tailwind.
- Shorten any URL
- Expiration date
- Limit the maximum number of views
- Create an account to save shortend URL's
- Dashboard to update saved URL's
- QR code for url's
- Vercel account
- Vercel postgres
# Clone repo
git clone https://github.com/arebrinkemil/minify.git
# CD in to project
cd minify
# Install node_modules
npm i
First set up a new vercel postgres database by following the
documentation
When your database is created and linked to your project, then seed the database
# Run seed script
npm run seed
To generate a NEXTAUTH_SECRET
run this command in your terminal
openssl rand -base64 32
NEXTAUTH_URL=
NEXTAUTH_SECRET=
# Start loclhost
npm run dev