https://github.com/vcolesdev/vcolesdev-fcc-url-shortener-api
URL shortener microservice built with NodeJS, TypeScript, and Express.
https://github.com/vcolesdev/vcolesdev-fcc-url-shortener-api
api backend express microservice nodejs rest-api typescript
Last synced: about 1 year ago
JSON representation
URL shortener microservice built with NodeJS, TypeScript, and Express.
- Host: GitHub
- URL: https://github.com/vcolesdev/vcolesdev-fcc-url-shortener-api
- Owner: vcolesdev
- Created: 2024-03-02T04:11:14.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-02T08:54:53.000Z (about 2 years ago)
- Last Synced: 2025-03-15T02:16:14.147Z (about 1 year ago)
- Topics: api, backend, express, microservice, nodejs, rest-api, typescript
- Language: TypeScript
- Homepage: https://vcolesdev.github.io/vcolesdev-fcc-url-shortener-api/
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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/`, 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