Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 1013 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 1013 Bytes

FreeCodeCamp project: URL Shortener Microservice https://www.freecodecamp.com/challenges/url-shortener-microservice

User Story: I can pass a URL as a parameter and I will receive a shortened URL in the JSON response.

User Story: 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.

User Story: When I visit that shortened URL, it will redirect me to my original link.

Note: all instructions and wording is taken from the example website (https://little-url.herokuapp.com/)

Other resources (no code was copied): http://stackoverflow.com/questions/14915496/how-can-i-allow-slashes-in-my-express-routes https://nodejs.org/dist/latest-v6.x/docs/api/http.html#http_message_headers http://stackoverflow.com/questions/26007187/node-js-check-if-a-remote-url-exists http://stackoverflow.com/questions/22673218/default-route-in-express-js http://stackoverflow.com/questions/4328540/how-to-catch-http-client-request-exceptions-in-node-js