Skip to content

Files

Latest commit

 

History

History

URL Shortener

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Install & Run

$ git clone https://github.com/michael-act/FreeCodeCamp
$ cd FreeCodeCamp/URL\ Shortener
$ npm install
$ npm start

Try your first URL Shortener Backend program

$ curl -X POST "url=\"https://google.com/\"" HOST_IP:PORT/api/shorturl
{
  "1343": "https://google.com/",
  "#": "#"
}

$ curl -X POST "url=\"https://instagram.com/\"" HOST_IP:PORT/api/shorturl
{
  "1343": "https://google.com/", 
  "4952": "https://instagram.com", 
  "#": "#"
}

Please understand the codes in ./src for further understanding.