url-shortener Tailwind Templates

Url Shortener

A sleek, modern URL shortening application built with React, TypeScript, Redux, and Tailwind CSS. Easily shorten any valid URL with a single click, copy to clipboard with visual feedback, and enjoy persistent storage of your shortened links. Features a responsive design that works across all devices.

šŸ”— URL Shortener

A simple, elegant URL shortening application built with React, TypeScript, Redux, and Tailwind CSS.

Preview


šŸš€ Features

  • Shorten any valid URL with a single click
  • Copy shortened URLs to clipboard with visual feedback
  • Responsive design that works on all devices
  • Persistent storage of shortened URLs
  • Clean, modern UI with Tailwind CSS

šŸ–„ļø Demo


šŸ› ļø Technologies Used

  • React – UI library for building the interface
  • TypeScript – For type-safe code
  • Redux Toolkit – For state management
  • Tailwind CSS – For styling
  • Vite – For fast development and building
  • CleanURI API – For URL shortening functionality

šŸ—ļø Project Structure

url-shortener/ ā”œā”€ā”€ src/ │ ā”œā”€ā”€ components/ │ │ ā”œā”€ā”€ ShortenerList.tsx # Displays the list of shortened URLs │ │ └── UrlShortener.tsx # Input form for shortening URLs │ ā”œā”€ā”€ features/ │ │ └── urlShortenerSlice.ts # Redux slice for URL state │ ā”œā”€ā”€ hooks/ │ │ └── redux.ts # Custom Redux hooks │ ā”œā”€ā”€ types/ │ │ └── store.ts # TypeScript type definitions │ ā”œā”€ā”€ App.tsx # Main application component │ ā”œā”€ā”€ main.tsx # Entry point │ └── store.ts # Redux store configuration ā”œā”€ā”€ public/ │ └── ... # Static assets └── ... # Configuration files


šŸš€ Getting Started

Prerequisites

  • Node.js (v14 or later)
  • npm or yarn

Installation

Clone the repository:

git clone https://github.com/atikur0786/url-shortener.git
cd url-shortener

Install dependencies:

npm install
# or
yarn

Start the development server:

npm run dev
# or
yarn dev

Top categories

Loading Svelte Themes