https://github.com/izzypt/url-shortener-microservice
freeCodeCamp URL shortener micro service exercise
https://github.com/izzypt/url-shortener-microservice
Last synced: about 1 month ago
JSON representation
freeCodeCamp URL shortener micro service exercise
- Host: GitHub
- URL: https://github.com/izzypt/url-shortener-microservice
- Owner: izzypt
- Created: 2023-03-20T13:47:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-20T17:48:41.000Z (over 3 years ago)
- Last Synced: 2025-01-14T21:45:40.769Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# URL-Shortener-Microservice
FCC url shortener micro service exercise
# Tests
- Passed: You should provide your own project, not the example URL.
- Passed: 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}
- Passed: When you visit /api/shorturl/, you will be redirected to the original URL.
- Passed: 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' }
# Public Url/Display
https://URL-Shortener-Microservice.simobonvalot.repl.co