Skip to content

abskrj/Shotly-URL-Shortner-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}