When posting on social media, character limits can be a real pain. Why not save precious characters with a URL shortener?
To check out this url shortener service:
- fork and clone
- npm install
- npm run dev
URL POST Request : http://localhost:4000/api/url/shorten
Header: Content-Type
Value: application/Json
Returns our UrlModel and the shortUrl is what we are testing for our GET request on any web browser.
- JavaScript
- Node.js
- Express
- MongoDB
- Vs Code
- Insomnia or Postman/ then returned shortened URL is tested thru any web browser.
- npm init -y
- npm install express mongoose shortid valid-url
- npm install --save-dev nodemon