A simple Node.js URL shortener using ExpressJS and MongoDB. The primary aim of a URL shortener is to convert long URLs into shorter, more manageable links. The shortened URL redirects users to the original, longer URL when accessed.
Follow these steps to set up the project locally:
First, clone the repository to your local machine:
git clone https://github.com/1simransaini/Url-Shortener.git
Navigate to the project directory and install the required dependencies:
cd Url-Shortener
npm install
Create a .env file in the root of the project directory and add the following environment variables:
PORT=3000
MONGO_URL=yours
Run the program as
node src/server.js