A Next.js project for shortening URLs.
This project is a simple URL shortening application built with Next.js. It allows users to enter a long URL and generate a shortened version. The application also provides analytics on the number of clicks for each shortened URL.
- URL Shortening: Users can enter a long URL and the application will generate a shortened version.
- URL Analytics: Users can view click statistics for each shortened URL.
- User-friendly Interface: The application provides an intuitive interface for creating, editing, and deleting shortened URLs.
- Next.js
- React
- Supabase
- Lucide React
- Tailwind CSS
- Shadcn UI
To get started with the project, follow these steps:
-
Clone the repository:
git clone https://github.com/khalil-codes/url-shortener-next.git
-
Install dependencies:
npm install
-
Set up environment variables:
- Create a
.env
file in the root directory of the project. - Add the following environment variables:
NEXT_PUBLIC_SUPABASE_URL=<your-supabase-url> NEXT_PUBLIC_SUPABASE_ANON_KEY=<your-supabase-anon-key>
- Create a
-
Start the development server:
npm run dev
-
Open the application in your browser:
- Visit http://localhost:3000 to see the application in action.
If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your changes.
- Make your changes.
- Commit and push your changes.
- Submit a pull request.
This project is licensed under the MIT License.
For more information about the project, you can refer to the following resources: