Skip to content

vanekj/url-shortener

Repository files navigation

URL shortener

Hobby application to play with Express, Nuxt and MongoDB. It creates shorthands for long URLs, something like Bitly does, and redirects back to the original URL when hashed URL is opened.

Application is hosted on Heroku and Mongo database is on free plan of MongoDB Atlas.

Used technologies

  • Heroku for deployment
  • MongoDB as a database
  • Docker to run it all locally
  • Node for application backend
  • Express as a web server framework
  • Mongoose to communicate with MongoDB
  • Nuxt for Vue server-side rendering
  • Bulma to give it some style

What it does?

When you paste some URL and create short version of it, unique hash is created for that URL, it's stored in Mongo database and returned back over API. Also, cookie is created so your link shortening history is preserved (until you remove that cookie, or it expires after one year of no action).