TTURL is a simple and efficient URL shortener built with Next.js that allows you to shorten your URLs in just one click.
- One-click URL shortening
- Customizable short links
- Real-time analytics (click counts, referrers)
- User-friendly interface
Check out the live demo here (replace with your live demo URL).
Please go through the CONTRIBUTING guide for details.
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
This is a Next.js project bootstrapped with create-next-app
.
create .env file and add these variables DATABASE_URL = 'your mongodb url' NEXT_PUBLIC_FRONTEND_URL = http://localhost:3000
Use this command to Generate Prisma Client.. make sure you are in the rood dir of the project
npx prisma generate
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
Usage To shorten a URL:
Enter the URL you want to shorten in the input field. Click the "Shorten" button. Copy the generated short URL and share it!
Contributing Contributions are welcome! Please follow these steps to contribute:
Fork the repository. Create a new branch (git checkout -b feature/your-feature-name). Make your changes. Commit your changes (git commit -m 'Add some feature'). Push to the branch (git push origin feature/your-feature-name). Open a pull request.