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.
- LinkTrim is live at: https://linktrime.netlify.app/
- β 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)
-
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
-
-
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.
-
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 π