vcolesdev / vcolesdev-fcc-url-shortener-api

URL shortener microservice built with NodeJS, TypeScript, and Express.

Home Page:https://vcolesdev.github.io/vcolesdev-fcc-url-shortener-api/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vcolesdev - URL Shortener Microservice

Build a full stack JavaScript app that is functionally similar to this: https://url-shortener-microservice.freecodecamp.rocks.

Overview

  • This is a URL shortener microservice that takes a URL and returns a shortened URL.

Features

  • Express.js
  • Node.js

Extra Credit

  • nodemon
  • TypeScript, tsc

To Do

Description

This is a URL shortener microservice.

Requirements

  • You 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' }

License

MIT | webdev@vcoles.com

About

URL shortener microservice built with NodeJS, TypeScript, and Express.

https://vcolesdev.github.io/vcolesdev-fcc-url-shortener-api/


Languages

Language:TypeScript 89.1%Language:HTML 10.9%