URL Shortener Microservice https://urlshortener.radiidev.repl.co/
Go to file
2020-09-18 18:07:33 +09:00
public fix: refactor html and css 2020-09-18 18:01:11 +09:00
views fix: refactor html and css 2020-09-18 18:01:11 +09:00
.gitignore feat: cleanup glitch assets and files and general prettifying 2020-09-14 17:39:40 +09:00
.replit fix: package.json spacing and .replit start script 2020-09-18 17:19:56 +09:00
nodemon.json feat: add and configure nodemon 2020-09-14 18:09:53 +09:00
package-lock.json feat: add and configure nodemon 2020-09-14 18:09:53 +09:00
package.json fix: package.json spacing and .replit start script 2020-09-18 17:19:56 +09:00
README.md fix: sync README.md user stories with pr #39311 2020-09-18 18:07:33 +09:00
sample.env feat: cleanup glitch assets and files and general prettifying 2020-09-14 17:39:40 +09:00
server.js feat: add dotenv 2020-09-14 18:03:06 +09:00

API Project: URL Shortener Microservice for freeCodeCamp

Run on Repl.it

User Stories

  1. You should provide your own project, not the example URL.
  2. You can POST a URL to /api/shorturl/new and get a JSON response with the property names original_url and short_url and the expected values for each.
  3. When you visit /api/shorturl/<short_url>, you will be redirected to the original URL.
  4. 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' }.