Thanks to visit codestin.com
Credit goes to github.com

Skip to content

LinkTrim is a lightweight and efficient URL shortener that converts long URLs into short, easy-to-share links.t is built using Node.js (Express) for the backend and React.js for the frontend. The application provides a seamless way to create and manage shortened URLs with a user-friendly interface.

Notifications You must be signed in to change notification settings

bhanuudhay/LinkTrim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 

Repository files navigation

LinkTrim

LinkTrim is a lightweight and efficient URL shortener that converts long URLs into short, easy-to-share links. It is built using Node.js (Express) for the backend and React.js for the frontend. The application provides a seamless way to create and manage shortened URLs with a user-friendly interface.

βœ… Successfully Deployed on Netlify πŸŽ‰

Features

  • βœ… Shorten long URLs into compact links
  • βœ… Fast redirection to original URLs
  • βœ… Unique short URLs generated using nanoid
  • βœ… Simple and intuitive UI built with React.js
  • βœ… Backend powered by Express.js with in-memory storage
  • βœ… Deployed on Render (Backend) and Netlify (Frontend)

Tech Stack & Modules Used

  • Backend (Node.js & Express.js)

    • Express.js – Web framework for handling HTTP requests

    • CORS – Enables cross-origin requests from the frontend

    • Nanoid – Generates unique, random short URL identifiers

    • Nodemon – Automatically restarts the server during development

  • Frontend (React.js)

    • React.js – Provides a dynamic and interactive UI

    • Fetch API – Communicates with the backend to generate short links

How It Works

  • User enters a long URL in the frontend.

  • The frontend sends the URL to the backend via a POST request.

  • The backend generates a unique short ID using nanoid and stores the mapping in an in-memory object.

  • A short URL is returned to the user.

  • When the short URL is accessed, the backend looks up the original URL and redirects the user.

Deployment

  • Backend: Hosted on Render for reliable API serving.

  • Frontend: Deployed on Netlify for fast and easy static hosting.

Created by Bhanu Udhay | Open for Contributions πŸš€

About

LinkTrim is a lightweight and efficient URL shortener that converts long URLs into short, easy-to-share links.t is built using Node.js (Express) for the backend and React.js for the frontend. The application provides a seamless way to create and manage shortened URLs with a user-friendly interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published