This project is a URL shortener with QR code generation functionality, built using the T3 Stack. It was bootstrapped with create-t3-app
.
- Overview
- Features
- Technologies Used
- Getting Started
- Usage
- Deployment
- Learn More
- Contributing
- License
This application allows users to shorten long URLs and generate QR codes for the shortened URLs. It is designed to be simple and intuitive, leveraging modern web technologies to provide a seamless experience.
- Shorten long URLs
- Generate QR codes for shortened URLs
- Database management with Drizzle
- Styled using Tailwind CSS
- API routes with zod validation
This project is built with the following technologies:
- Next.js: A React framework for building fast web applications
- Drizzle: Lightweight database toolkit
- Tailwind CSS: Utility-first CSS framework
- Zod: TypeScript-first schema validation with static type inference
To get started with this project, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/url-shortener.git cd url-shortener
-
Install dependencies:
pnpm install
-
Set up environment variables:
Create a
.env
file in the root of the project and add your environment variables. Refer to.env.example
for the variables you need to set. -
Run the development server:
pnpm dev
Open http://localhost:3000 with your browser to see the result.
-
Shortening a URL:
- Enter the long URL in the input field.
- Click on the "Shorten URL" button.
- The shortened URL will be displayed along with a QR code.
-
Scanning a QR code:
- Use any QR code scanning app to scan the generated QR code.
- The app will redirect you to the shortened URL.
To deploy this application, follow one of our deployment guides:
- Vercel: Deploy on Vercel
- Netlify: Deploy on Netlify
- Docker: Deploy with Docker
To learn more about the T3 Stack and the technologies used in this project, check out the following resources:
- T3 Stack Documentation: Learn the T3 Stack
- Next.js Documentation: Next.js Docs
- Drizzle Documentation: Drizzle Docs
- Tailwind CSS Documentation: Tailwind CSS Docs
- Zod: Zod
We welcome contributions! Please open an issue or submit a pull request with your changes. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License. See the LICENSE file for more information.