/url_shortener_service

API to shorten urls using Node, Express & MongoDB

Primary LanguageJavaScript

URL Shortener Service

API to create short urls using Node, Express and MongoDB

Quick Start

# Install dependencies
npm install

# Edit the default.json file with your mongoURI and baseUrl
# Use production.json in production env

# Run
npm start

Endpoint to create short url

POST api/url/shorten

{ "longUrl": "xxxx" }