Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 694 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 694 Bytes

Sotly URL Shortner

LIVE Preview: https://app.codedoc.tech

NOTE: This is Backend of the WebApp, Click on the below link to view frontend. Frontend: Click Here

Tools Used

  1. ExpressJS
  2. NodeJS
  3. Mongoose
  4. MongoDB

Running Locally

git clone https://github.com/abhishekraj272/Shotly-URL-Shortner-Backend

cd Shotly-URL-Shortner-Backend

# Create .env file and paste
MONGO_URI=<Your MongoDB URL Here>

npm install

npm start

APIs available

  1. POST /api/v1/shorten
Content-Type: application/json

{
    "urlReceived": originalURL,
    "urlCode": alias
}
  1. GET /api/v1/count
  2. GET /{alias}