Skip to content

tjohnson7021/fcc_project-url-shortener

Repository files navigation

Project: URL-shortener microservice

This small project application is part of the completion criteria for the Freecodecamp.org Back End Development and APIs certification

Application I/O Expectations:

At completion, the application is expected to do the following:

  • User can POST a URL to /api/shorturl and get a JSON response with original_url and short_url properties. Here's an example: { original_url : 'https://freeCodeCamp.org', short_url : 1}

  • When you visit /api/shorturl/<short_url>, you will be redirected to the original URL.

  • If you pass an invalid URL that doesn't follow the valid http://www.example.com format, the JSON response will contain { error: 'invalid url' }

About

A basic Node application that returns a shortened URL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published