Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 552 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 552 Bytes

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.