A URL Shortener Application built with Node.js, Express and MongoDB
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.env.sample
.gitignore
Procfile
README.md
package-lock.json
package.json

README.md

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
  • cd into the project folder and run npm install
  • Rename .env.sample to .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.