A simple URL shortener application built with ReactJS, Vite, and TailwindCSS that uses the TinyURL API to create shortened URLs.
Visit the live application at: https://react-url-shortener-iota.vercel.app/
- Shorten long URLs with a single click
- Copy shortened URLs to clipboard
- Responsive design for both desktop and mobile
- Simple and intuitive user interface
- Real-time URL validation
- Integration with TinyURL.com API
- ReactJS - Frontend library
- Vite - Fast build tool and development server
- TailwindCSS - Utility-first CSS framework
- Axios - Promise-based HTTP client
- Vercel - Deployment and hosting
- Node.js (v14.0.0 or later)
- npm or yarn
-
Clone the repository
git clone https://github.com/yourusername/react-url-shortener.git cd react-url-shortener
-
Install dependencies
npm install # or yarn install
-
Start the development server
npm run dev # or yarn dev
-
Open your browser and navigate to
http://localhost:5173
- Enter a valid URL in the input field (including http:// or https://)
- Click the "Shorten URL" button
- The shortened URL will appear below
- Click the "Copy" button to copy the shortened URL to your clipboard
This project is deployed on Vercel. To deploy your own version:
- Push your code to a GitHub repository
- Connect your repository to Vercel
- Configure the build settings:
- Build Command:
npm run build
oryarn build
- Output Directory:
dist
- Build Command:
- Deploy
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.