This is a URL shortener web application built with Next.js, Prisma, and PostgreSQL. It allows users to shorten long URLs into easily shareable and manageable links.
- Shorten long URLs into compact, user-friendly links.
- Track the number of clicks on each shortened link.
- User registration and authentication for managing links.
- Admin dashboard for viewing link analytics.
- Easy-to-use and responsive user interface.
You can access a live demo of the application at https://trixurl.vercel.app/.
To run the application locally, follow these steps:
-
Clone this repository:
git clone https://github.com/tomdieu/url-shortener.git
-
Navigate to the project directory:
cd url-shortener
-
Install dependencies:
npm install
-
Create a .env.local file in the root directory and add your environment variables, including your PostgreSQL database connection details, API keys, and other necessary configurations.
-
Run the development server:
npm run dev
-
Open your browser and access the app at
http://localhost:3000
.
- Register or log in to your account.
- Shorten a URL by pasting it into the input field and clicking "Shorten."
- View and manage your shortened links.
- Access link analytics and click statistics.
Next.js 14
Prisma
PostgreSQL
Tailwind CSS
Authentication: NextAuth.js
Deployment: Vercel
Contributions are welcome! Please refer to the Contribution Guidelines
for details on how to contribute to this project.
This project is licensed under the MIT License
.