This is a URL Shortener application built with a backend using Express and MongoDB, and a frontend using Vite and React.
- Shorten URLs
- Redirect to original URLs
- View clicks of shortened URLs
- Node.js
- Vite - React
- MongoDB
- Clone the repository:
git clone https://github.com/satendra03/urlShortner.git cd urlShortner - Go to backend folder and install backend dependencies:
cd backend npm install - Create a
.envfile in the root directory and add your MongoDB URI:MONGO_URI=your_mongodb_uri PORT=8000
- Start the server
npm run dev
- Go to frontend folder and install dependencies:
cd frontend npm install - Start the server
npm run dev
- Open your browser and navigate to
http://localhost:5173.
- Enter a URL in the input field and click "Shorten URL".
- The shortened URL will be displayed below the input field.
- Click the shortened URL to be redirected to the original URL.
We’d love to hear from you! Whether you have a question, suggestion, or issue to report, feel free to get in touch with us.
-
GitHub Issues: You can open an issue directly on this repository for bugs, feature requests, or general inquiries.
-
Email: Reach out to us via email at:
-
Social Media:
- Instagram: @_satendra_03
- LinkedIn: Satendra Kumar Parteti
-
Buy Me A Coffee: