Skip to content

An API for URL shortening using Nodejs and MongoDB 🔥💫

Notifications You must be signed in to change notification settings

bera5186/ShortURL-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShortURL-API

Hosted on https://biteurl.herokuapp.com/

Endpoints

/api/url/shorten : accepts a POST request

Request :

{
    "longUrl": "https://devcenter.heroku.com/articles/renaming-apps"
}

Response :

{
    "_id": "5daad8a4ee7fa400176f001c",
    "longUrl": "https://devcenter.heroku.com/articles/renaming-apps",
    "shortUrl": "https://biteurl.herokuapp.com/pEg3IM0tT",
    "urlCode": "pEg3IM0tT",
    "date": "Sat Oct 19 2019 09:34:28 GMT+0000 (Coordinated Universal Time)",
    "__v": 0
}

To-Do

  1. Create a UI
  2. Use Handle Bars templating engine for templates
  3. Use fetch API to fetch data

About

An API for URL shortening using Nodejs and MongoDB 🔥💫

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published