Abdelaziz18003 / urlshortner

A service providing url shortening based on node.js and mongodb

Home Page:http://u2s.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URL Shortener Microservice

User stories:

  • I can pass a URL as a parameter and I will receive a shortened URL in the JSON response.
  • When I visit that shortened URL, it will redirect me to my original link.
  • If I pass an invalid URL that doesn't follow the valid http://www.example.com format, the JSON response will contain an error instead.

Example creation usage:

https://u2s.herokuapp.com/add/<b>https://abdelaziz18003.github.io/tic-tac-toe/</b>

Example creation output

{"longUrl": "https://abdelaziz18003.github.io/tic-tac-toe/", "shortUrl": "https://u2s.herokuapp.com/l"}

Usage:

https://u2s.herokuapp.com/l

Will redirect to:

https://abdelaziz18003.github.io/tic-tac-toe/

About

A service providing url shortening based on node.js and mongodb

http://u2s.herokuapp.com/


Languages

Language:JavaScript 85.6%Language:HTML 12.8%Language:CSS 1.6%