url-shortener
url-shortener copied to clipboard
A URL Shortener Application built with Node.js, Express and MongoDB
URL Shortener Demo
A URL Shortener Application built with Node.js, Express and MongoDB. Tutorial: https://freshman.tech/url-shortener/
This project is live at https://freshman-shortener.herokuapp.com/
Prerequisites
You must have Node.js, npm and MongoDB installed on your machine. This project was built against the following versions:
- Node v11.2.0
- npm v6.6.0
- MongoDB v4.0.5
Setup
- Clone this repo to your machine
cdinto the project folder and runnpm install- Rename
.env.sampleto.env - Run
npm start - Navigate to http://localhost:4100
How to use
- Enter a URL into the input field and hit Shorten. The shortened URL will be displayed on the page.
- Open the shortened URL in a new tab. It should redirect you to the original URL.