A simple URL shortening web application built with Node.js, Express, and MongoDB.
- Shorten long URLs to concise and shareable short links.
- Copy short URLs to the clipboard with a click.
- Node.js installed
- MongoDB installed and running
-
Clone the repository:
git clone https://github.com/FreeCode911/Minolink.git
-
Navigate to the project directory:
cd url-shortener
-
Install dependencies:
npm install
-
Open file named
config.json
in the project root:{ "mongodb_url": "mongodb+srv://admin:admin@lykcloud.me/url-shortener", //Remove In MongoDB ( ?retryWrites=true&w=majority ) EG:- mongodb+srv://USERNAME:PASSWORD@xx/ANY_NAME "port": 3000, "website_url": "https://example.com", //Website Url Must Be https://example.com Do Not Add https://example.com/ , https://example.com//, etc.. }
-
Start the application:
npm start
-
Open your browser and visit https://your-domain.com.
-
Enter a long URL in the input box and click "Shorten URL."
-
Copy the generated short URL and share it!
You can customize the website URL by modifying the config.json
file.